mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
Merge branch 'MDL-64324-master' of https://github.com/marinaglancy/moodle
This commit is contained in:
commit
507d7ec1e8
@ -1534,7 +1534,8 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
// No 'name' atttribute for form in xhtml strict :
|
||||
$attributes = array('action' => $action, 'method' => $method, 'accept-charset' => 'utf-8') + $target;
|
||||
if (is_null($this->getAttribute('id'))) {
|
||||
$attributes['id'] = 'mform' . $formcounter;
|
||||
// Append a random id, forms can be loaded in different requests using Fragments API.
|
||||
$attributes['id'] = 'mform' . $formcounter . '_' . random_string();
|
||||
}
|
||||
$formcounter++;
|
||||
$this->updateAttributes($attributes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user