-
Bug
-
Resolution: Fixed
-
Critical
-
4.1
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
The new "Grades summary" report recently added in MDL-75156 throws exceptions if you try to page/filter the report, when inside a course with groups
codingerror
|
Coding error detected, it must be fixed by a programmer: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context()
|
File: /lib/pagelib.php
|
Line: 562
|
Stack trace:
|
|
Error code: codingerror
|
* line 562 of /lib/pagelib.php: coding_exception thrown
|
* line 962 of /lib/pagelib.php: call to moodle_page->magic_get_context()
|
* line 1456 of /lib/weblib.php: call to moodle_page->__get()
|
* line 633 of /lib/grouplib.php: call to format_string()
|
* line 649 of /lib/grouplib.php: call to groups_list_to_menu()
|
* line 593 of /lib/grouplib.php: call to groups_sort_menu_options()
|
* line 375 of /grade/report/lib.php: call to groups_print_course_menu()
|
* line 57 of /grade/report/summary/lib.php: call to grade_report->setup_groups()
|
* line 94 of /grade/report/summary/classes/local/entities/grade_items.php: call to grade_report_summary->__construct()
|
* line 257 of /reportbuilder/classes/local/report/base.php: call to gradereport_summary\local\entities\grade_items->initialise()
|
* line 46 of /grade/report/summary/classes/local/systemreports/summary.php: call to core_reportbuilder\local\report\base->add_entity()
|
* line 99 of /reportbuilder/classes/local/report/base.php: call to gradereport_summary\local\systemreports\summary->initialise()
|
* line 65 of /reportbuilder/classes/system_report.php: call to core_reportbuilder\local\report\base->__construct()
|
* line 64 of /reportbuilder/classes/manager.php: call to core_reportbuilder\system_report->__construct()
|
* line 48 of /reportbuilder/classes/form/filter.php: call to core_reportbuilder\manager::get_report_from_persistent()
|
* line 57 of /reportbuilder/classes/form/filter.php: call to core_reportbuilder\form\filter->get_report()
|
* line 68 of /lib/form/classes/dynamic_form.php: call to core_reportbuilder\form\filter->get_context_for_dynamic_submission()
|
* line 73 of /lib/form/classes/external/dynamic_form.php: call to core_form\dynamic_form->__construct()
|
* line 261 of /lib/externallib.php: call to core_form\external\dynamic_form::execute()
|
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
|
The problem is that the report relies on $PAGE->context being set before initialisation
- is a regression caused by
-
MDL-75156 Create a new "Grades summary" report in gradebook
-
- Closed
-