-
Bug
-
Resolution: Fixed
-
Minor
-
3.11, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-71686-master -
When we started moving all workplace forms to https://docs.moodle.org/dev/Modal_and_AJAX_forms we found a couple of errors introduced during re-writing from jquery to ES6 and also when making changes during integration review:
1. The error handler does not bind "this" and on submission error (for example, if there was an exception during processing), the notification is not displayed, instead there is a JS error "'this' is undefined"
edit: this was fixed in MDL-73205
2. It is not possible to pass arrays as arguments - they reach the form as comma-separated string
const args = {programid: 15, programuserids: [15,2,3,8]};
|
const searchParams = new URLSearchParams(Object.entries(args));
|
console.log(searchParams.toString());
|
// Actual: programid=15&programuserids=15%2C2%2C3%2C8
|
// What we expect: programid=15&programuserids[]=15&programuserids[]=2&programuserids[]=3&programuserids[]=8
|
- caused a regression
-
MDL-76039 Create a new profile category button does nothing
- Closed
- has been marked as being related by
-
MDL-64554 Add module for displaying moodleform in a modal window
- Closed
- will be (partly) resolved by
-
MDL-73205 AJAX exceptions thrown when submitting modal/dynamic forms never caught
- Closed