-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.5, 4.4.2
If question_has_capability_on() is called with a question id that doesn't exist in the database it throws a coding exception: "Invalid context id specified context::instance_by_id()".
This is accurate, but it's not very helpful as it's the result of passing null as the context id. It may be better if there were a check that $question is not false before continuing, and a coding_exception explaining the real reason why it failed.
- has been marked as being related by
-
MDL-82554 Coding error on editing quiz with question with null createdby
-
- Closed
-