From 2f2856899b1e2bde957fc1743fa081796060cef7 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 21 Jul 2025 11:26:54 +0000 Subject: [PATCH] Bug 40395: (QA follow-up) Ensure checkboxes are unchecked after suspending To test, select a few holds to suspend (but not all). Click 'Suspend selected'. Notice the selection doesn't reset. After this patch, it does reset. --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 98880fe29c3..952da5e538e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -651,9 +651,7 @@ $(document).ready(function () { $("#suspend-modal-until").flatpickr().clear(); // clean the input } $("#suspend-modal").modal("hide"); - if ($(".select_hold_all").prop("checked")) { - $(".select_hold_all").click(); - } + $(".select_hold_all").click(); }); } catch (error) { if (error.status === 404) { -- 2.39.5