Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.3, 3.4.3, 3.5
-
Fix Version/s: DEV backlog
-
Component/s: Database SQL/XMLDB
-
Labels:
-
Database:Any
-
Testing Instructions:
-
Affected Branches:MOODLE_23_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
Epic Link:
Description
When you call get_record with MUST_EXIST this currently throws a dml_exception. This should actually throw a different exception because it does not indicate a database error.
For example the exception could be a must_exist_exception and it could contain a default language string such as:
'Required information not found in database. This can occur if you follow an outdated or incorrect link.'
Attachments
Issue Links
- has been marked as being related by
-
MDL-40200 PHP Notice when viewing the profile of a not existing user
-
- Closed
-