Details
-
Bug
-
Resolution: Fixed
-
Minor
-
3.8.4, 3.9.1, 3.10, 4.0
-
3
-
4.0 holding pattern 5
Description
When selecting/deselecting the toggle-all (parent) checkbox, multiple events with an inconsistent data are being fired. This makes it really hard for a subscriber to properly utilize the data. Also, this causes performance issues which are noticeable when attempting to bulk select larger set of data (takes ~ 5 sec to bulk select ~ 1000 records).
Ideally, a single event should be fired after changing the state of the toggle-all (parent) checkbox and it's data should reflect the final state of the child checkboxes in the specific toggle group.
Steps to reproduce:
- Unzip the attached local plugin into the /local/ directory of your moodle installation
- Login as Admin.
- Install the plugin and go to PATHTOMOODLEINSTANCE/local/checkboxtoggleallevents/index.php
- Click on the 'Toggle-all' (parent) checkbox for "Checkbox Group 1" in order to select all checkboxes in Group 1.
- Open the console in the browser, the fired events should be captured in the console.
Result:
Actual: 7 events are being fired and captured in the console.
Expected: 1 event should be fired with data which reflects the current state of the specific toggle group (ex. all 3 child checkboxes from the toggle group "participants-table option-1" are selected)
Attachments
Issue Links
- blocks
-
MDL-67747 Unable to select all users for action following an insight report
-
- Open
-