Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.6
-
MOODLE_36_STABLE
-
MOODLE_37_STABLE
-
MDL-64324-master -
Description
MoodleQuickForm constructor assigns "id" attribute to the forms with the following logic:
static $formcounter = 1;
|
if (is_null($this->getAttribute('id'))) {
|
$attributes['id'] = 'mform' . $formcounter;
|
}
|
$formcounter++;
|
As a result all forms loaded in AJAX using Fragment API have the same id="mform1"
This causes JS conflicts on the page