MDL-70962 forms: catch modal exceptions when getting body content.
commit11099c15bb6623d6fafe684192f67a23461da302
authorPaul Holden <paulh@moodle.com>
Mon, 22 Feb 2021 11:23:28 +0000 (22 11:23 +0000)
committerPaul Holden <paulh@moodle.com>
Thu, 25 Mar 2021 17:26:36 +0000 (25 17:26 +0000)
treeaa088d44af37ad07db51888d42ba80927a50267c
parent4c26696e7e369f6e978c09a44d25e4582dedb88c
MDL-70962 forms: catch modal exceptions when getting body content.

They are thrown in the following circumstances:

 * The dynamic form class doesn't exist;
 * It does exist but it's `check_access` method throws exception

Co-Authored-By: Andrew Nicols <andrew@nicols.co.uk>
lib/amd/build/modal.min.js
lib/amd/build/modal.min.js.map
lib/amd/src/modal.js
lib/form/amd/build/modalform.min.js
lib/form/amd/build/modalform.min.js.map
lib/form/amd/src/modalform.js