mirror of
https://github.com/moodle/moodle.git
synced 2025-03-01 14:32:48 +01:00
If the submit event listener is not correctly closed, then the submit event calls the relevant callback multiple times incorrectly. When hiding the Add role dialogue, we need to detach any event listeners which are applied to it.