-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.6, 2.6.3, 2.7
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-45675_master -
- Create a database activity.
- Add a 'menu' field with no options.
- Click on the 'Add entry' tab and ensure next to the field name there is simply a select box with 'Choose...' as the only option.
Unfortunately the entries do not use moodle forms so you can't add validation before submitting the field entry easily.
- Create a database activity.
- Add a 'menu' field with no options.
- Go to add an entry you will get the following error - "Go to ‘Add entry’ and you get “Debug info: Argument 1 passed to html_writer::select() must be of the type array, null given, called in [dirroot]/mod/data/field/menu/field.class.php on line 50 and defined”"