-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.4, 4.2.1
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-78477_401 -
When we delete the question from the Question bank history table using question's Edit menu > Delete option and if there are no more questions to display in the history table, then the below mentioned warnings are seen.
Steps:
- Go to the Question bank
- Add a question
- Click on Question Edit > History
- The Question history is displayed.
- In the History table, click on Question’s Edit menu and select ‘Delete’
- Confirm Delete
- Observe that the following warnings are displayed when there are no questions to display in the history table.
Errors:
Warning: Attempt to read property "name" on bool in /opt/app/question/bank/history/classes/question_history_view.php on line 191
Warning: Attempt to read property "qtype" on bool in /opt/app/lib/questionlib.php on line 1135
Warning: Attempt to read property "qtype" on bool in /opt/app/lib/questionlib.php on line 1139