-
Bug
-
Resolution: Fixed
-
Major
-
3.1, 3.1 regressions
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-54837-master -
-
3.2 Sprint 1
While upgrading my own plugin to 3.1 I found several errors in Tag API:
Error 1: If the tag collection is predefined in the db/tag.php (example), the "Manage tags" page throws an exception
Coding error detected, it must be fixed by a programmer: Options for select element must contain an option for the specified value
|
|
More information about this error
|
Debug info:
|
Error code: codingerror
|
Stack trace:
|
|
line 175 of /lib/classes/output/inplace_editable.php: coding_exception thrown
|
line 56 of /tag/classes/output/tagareacollection.php: call to core\output\inplace_editable->set_type_select()
|
line 76 of /tag/classes/areas_table.php: call to core_tag\output\tagareacollection->__construct()
|
line 188 of /tag/manage.php: call to core_tag_areas_table->__construct()
|
Error 2: Specifying the tag callback as a static function in a class throws a fatal error
'callback' => 'local_testtags_process::tags',
|
Error 3: Again fatal error when upgrading plugin that used to add a form element 'tags' this way:
$mform->addElement('tags', 'tags', get_string('tags'));
|