-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.2.3
-
MOODLE_22_STABLE
-
MOODLE_23_STABLE
-
w25_
MDL-33831_m23_glossestrict -
I ran into a couple of warnings when testing the Glossary.
When I imported a file of entries I saw the following report repeated many times.
Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\import.php on line 195
|
There was an error after importing entries into the glossary that is reported in MDL-33707 and MDL-33821.
Viewing the "Full report of recent activity..." from the Recent activity block showed a page with the following two warnings repeated numerous times.
Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\lib.php on line 408
|
|
Strict Standards: Creating default object from empty value in D:\xampp\htdocs\moodle_testing\mod\glossary\lib.php on line 411
|
Replication steps:
- Log in as teacher/admin
- Create a glossary or work with an existing one, some entries are needed
- In the glossary, navigate to Settings > Glossary settings > Export entries and export the entries to a file
- Go back to the course page and create a new, empty glossary
- Navigate to Settings > Glossary settings > Import entries and choose the file you just exported
- Navigate to the course page and ensure the Recent activity block is shown
- Click the link "Full report of recent activity..." in the Recent activity block
Expected result: no errors shown
Actual result: Strict standards errors shown on import and recent activity pages