[Koha-bugs] [Bug 31566] 'Patrons selected' counter doubles on 'Select all'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 23 17:26:37 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31566

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 140923
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140923&action=edit
Bug 31566: 'Patrons selected' counter doubles on 'Select all'

This patch refines the JavaScript which is run when the "Select all"
or "Clear all" controls are clicked. The script now checks to see
whether the checkbox is checked before triggering the change function.

To test, apply the patch and perform a patron search in the staff
interface which will return multiple results.

- After the patron search results are displayed, test the "Select
  all" control. The visible search results should all be checked,
  and the "Patrons selected" counter at the top should be
  incremented correctly.
- Clicking the "Select all" control again should have no effect.
  The "Patrons selected" counter should not increment again.
- Test the "Clear all" control to confirm that checkboxes are
  unchecked and the counter updates correctly.
- Test with multiple pages of patron search results to confirm
  that the controls work correctly on any page of results..

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list