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

Roman Dolny <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #194699|0                           |1
        is obsolete|                            |

--- Comment #2 from Roman Dolny <[email protected]> ---
Created attachment 194909
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194909&action=edit
Bug 42013: Fix missing confirmation dialog for "Remove all reserves"

- The confirmDelete dialog for removing all reserves from a course
  was bound as a click handler on the #rm_items form element, which
  is never directly clicked by the user
- The #rm_items_button click handler called .submit() on the form
  without checking confirmDelete first, bypassing the confirmation
- Move the confirmDelete check into the #rm_items_button click
  handler and remove the dead #rm_items click handler

Test plan:
- Enable UseCourseReserves system preference (should be enabled in ktd)
- Create a course (or use the existing one) and add at least one reserve to it
- On the course details page, click "Remove all reserves"
- Observe the form submits immediately without confirmation
- Apply patch
- Repeat the steps above
- Verify a confirmation dialog now appears
- Click cancel and verify the reserves are not removed
- Click "Remove all reserves" again, confirm, and verify
  the reserves are removed

Signed-off-by: Roman Dolny <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to