Merge branch 'MDL-74906-311' of https://github.com/snake/moodle into MOODLE_311_STABLE

This commit is contained in:
Jun Pataleta
2022-06-28 23:33:29 +08:00
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -204,7 +204,7 @@ define(
submitAndCourse.onclick = (e) => {
e.preventDefault();
submitAndCourse.disabled = true;
const fd = new FormData(document.querySelector('form.mform'));
const fd = new FormData(document.querySelector('#region-main-box form'));
const postVariant = (promise, variant) => {
Object.entries(variant).forEach((entry) => fd.set(entry[0], entry[1]));
const body = new URLSearchParams(fd);