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.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit cb60bc435f)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Pedro Amorim 2025-07-21 11:26:54 +00:00 committed by Paul Derscheid
parent e589114fab
commit bd779cc7b6
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 3 deletions

View File

@ -642,9 +642,7 @@ $(document).ready(function () {
$("#suspend-modal-until").flatpickr().clear(); // clean the input $("#suspend-modal-until").flatpickr().clear(); // clean the input
} }
$("#suspend-modal").modal("hide"); $("#suspend-modal").modal("hide");
if ($(".select_hold_all").prop("checked")) { $(".select_hold_all").click();
$(".select_hold_all").click();
}
}); });
} catch (error) { } catch (error) {
if (error.status === 404) { if (error.status === 404) {