-
Bug
-
Resolution: Fixed
-
Major
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-53730-master -
When 'course' element is populated with initial data it triggers 'onchange' JS event.
If developer, for example, wants to attach a listener that automatically submits the form, it enters into the indefinite loop of redirections.
Example:
- revert commit https://github.com/moodle/moodle/commit/9b9b9caba380af84dabad587d2223b9846e1e48e
- create feedback on the front page
- go to course mapping tab, add some courses, refresh
- in network tab you will see that request to coursemap.php is set immediately on page load and not only after a change to the course mapping