-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.6
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-77472-401 -
- Enable outcomes in admin/settings.php?section=optionalsubsystems
- Create an outcome
- Click edit outcome from gradebook setup page
Observe the error:
Exception - Argument 1 passed to grade_plugin_return::add_url_params() must be an instance of moodle_url, string given, called in [dirroot]/grade/edit/tree/item.php on line 61 |
|
More information about this error |
|
Debug info:
|
Error code: generalexceptionmessageĂ—Dismiss this notification |
Stack trace:
|
line 1227 of /grade/lib.php: TypeError thrown |
line 61 of /grade/edit/tree/item.php: call to grade_plugin_return->add_url_params() |
So this line need to be fixed:
$url = $CFG->wwwroot.'/grade/edit/tree/outcomeitem.php?id='.$id.'&courseid='.$courseid; |
And this too:
$url = $CFG->wwwroot.'/grade/edit/tree/category.php?id='.$grade_category->id.'&courseid='.$courseid; |
- blocks
-
MDL-77033 Indicators when the state of a grade item or category is changed in the Gradebook setup
- Closed