Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.10.6, 3.11.2, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE
-
MDL-72309-311 -
Description
It is possible to remove the category label when creating a new course. When no category labels are present and you attempt to create the course an error is shown.
Can't find data record in database table course_categories.
Debug info: SELECT * FROM
Unknown macro: {course_categories}WHERE id IS NULL
[array (
)]
Error code: invalidrecord
×Stack trace:
line 1646 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 2329 of /course/lib.php: call to moodle_database->get_record()
line 162 of /course/edit.php: call to create_course()
×Output buffer: <br /> <b>Notice</b>: Undefined property: stdClass::$category in <b>/opt/app/course/lib.php</b> on line <b>2329</b><br />