-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.16, 4.1.17, 4.5.2
-
None
-
2024051300
-
MOODLE_401_STABLE, MOODLE_405_STABLE
Steps to reproduce
- Create a course or go to an existing one
- Add a "custom reports" block
- Click "Manage reports"
- In the "Import report from repository" section, in the "Category" drop-down list, switch the category from "..." to any other the following actions must be performed quickly switch the category back to "..." and in the "Report" drop-down list, select a report named README (if there is no such a report, repeat step 4)
- We get an error and click "continue"
- In the "Import report from repository" section, in the "Category" drop-down list, switch the category from "..." to any other the following actions must be performed quickly switch the category back to "..." and in the "Report" drop-down list, select any report named undefined (if there is no such a report, repeat step 6)
The result
error/errorimporting
Debug info:
Error code: errorimporting
$a contents:
Stacktrace:
line 70 of /blocks/configurable_reports/managereport.php: moodle_exception thrown
Output buffer: <br /> <b>Notice</b>: Trying to get property 'content' of non-object in <b>[path_to_moodle]/blocks/configurable_reports/managereport.php</b> on line <b>59</b><br />
After getting the error, the drop-down lists in the "Import report from repository" section will be empty. Clearing the cache / incognito mode / restarting the browser do not help. Only after about an hour will the elements appear in the drop-down lists again.
Expected result
No errors. Drop-down lists in the "Import report from repository" show the reports.
- has a non-specific relationship to
-
CONTRIB-9879 error/errorimporting README report (part1)
-
- Open
-
-
CONTRIB-9881 error/errorimporting README report - continously switch categories (part2)
-
- Open
-