-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.3, 3.10, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
There seems to be several issues when an error is being thrown in the modal.
- When an error occurs while setting up the modal's body the same error notification is displayed twice. From a discussion with dobedobedoh:
"One of the issues is that setBody() has its own promise chaining. It uses .then().then().fail(Notification.exception).always().fail(Notification.exception)}}The problem with jQuery's {{.fail() is that it returns a rejected Promise which means you get two notifications with the same error" - The modal backdrop is not being cleared once the displayed error notifications and the existing modals are closed. This blocks users to take any actions on the page and are forced to refresh the page.
- will help resolve
-
MDL-57614 The blocks system passes data to JavaScript in a bad way which can trigger the js_call_amd debug warning
-
- Closed
-