Project

General

Profile

Bug #8022

Course creation form: Special course should be a checkbox

Added by Yannick Warnier almost 4 years ago. Updated almost 4 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Administration
Target version:
Start date:
29/12/2015
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

In the course creation form (1.10.x), the "Special course" option should be a checkbox. It's either a special course or it's not. Currently, it's a text field.

Associated revisions

Revision 57102fff (diff)
Added by Julio Montoya almost 4 years ago

Fix extra field "special_course" see #8022

Revision 8c1de01f (diff)
Added by Julio Montoya almost 4 years ago

Fix checkbox extra field edit see #8022

History

#1

Updated by Julio Montoya almost 4 years ago

Ok this is a "legacy" problem that special course option never had a "field type". The value saved are 1 or 0, working in a fix.

#2

Updated by Julio Montoya almost 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

Should be fixed now, it requires a DB update.

#3

Updated by Yannick Warnier almost 4 years ago

  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 0 to 50

Well... now it is a checkbox, but it's impossible to "uncheck" :-p

#4

Updated by Julio Montoya almost 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

I just added a correction for this

#5

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Assigned to Needs testing
  • % Done changed from 50 to 80
#6

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Needs testing to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 80 to 50

Special course checkbox has gone back to being a text field now (although now I can go back to an empty value instead of "1")
There's something fishy here...

#7

Updated by Julio Montoya almost 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

When upgrading to 1.10 the field type of special course should be checkbox this is the migration change:

UPDATE course_field SET field_type = 13 WHERE field_variable = 'special_course'

What kind of chamilo you have installed? It comes from a migration? A clean installation?

#8

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Assigned to Bug resolved
  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 50 to 100

This was apparently the same composer update issue as the other. I also reinstalled my test portal and it works fine now.
Sorry for the trouble.

Also available in: Atom PDF