-
Bug
-
Resolution: Fixed
-
Major
-
2.0.2, 2.3.2, 2.5.5
-
Moodle 2.0.2+ (Build: 20110427)
php 5.3.3
MySQL 5.5.9
-
MOODLE_20_STABLE, MOODLE_23_STABLE, MOODLE_25_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-27459-master -
Editing an already created Database activity gets the following error message:
/////////////////////////////////////////////
Debug info: Cannot find grade item for 'data'
cm '18209' matching number '0'
Stack trace:
- line 1317 of /lib/completionlib.php: moodle_exception thrown
- line 568 of /lib/completionlib.php: call to completion_info->internal_systemerror()
- line 492 of /lib/completionlib.php: call to completion_info->internal_get_state()
- line 789 of /lib/completionlib.php: call to completion_info->update_state()
- line 342 of /course/modedit.php: call to completion_info->reset_all_state()
/////////////////////////////////////////////
To reproduce this error:
1. create an ungraded Database activity
2. save - no error appears at this point
3. Access the Database activity and click on Edit Settings link
4. Make changes, but make sure "Aggregate type" is set to "No ratings"
5. Click on the [Save and display] button
6. The above error message appears (this is with Debug messages set to "Developer"
Workaround at this point is to click on the name of the Database activity in the breadcrumbs (not on the Continue button). Interestingly changes made while editing the activity seem to be saved as expected.