From ff93ce714b37defe9575601daa25cf7d5e4ee58e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 25 Apr 2023 23:11:17 +0000 Subject: [PATCH] Bug 33613: Use prop() to evaluate checkbox To test: 1. Have an item with a replacement cost checked out to a patron 2. Set the ClaimReturnedChargeFee sys pref to "Ask if a lost fee should be charged" 3. Make a claim and check the box for charging. 4. Claim happens but no charge occurs. 5. Apply patch and try again. 6. A charge should now occur. Signed-off-by: David Nind Signed-off-by: Hinemoea Viault Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc index 59cc8a6ad2..be16faa851 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modal-claims.inc @@ -63,7 +63,7 @@ $(document).on("click", '#claims-returned-modal-btn-submit', function(e){ let itemnumber = $('#claims-returned-itemnumber').val(); let notes = $('#claims-returned-notes').val(); - let fee = $('#claims-returned-charge-lost-fee').attr('checked') ? true : false; + let fee = $('#claims-returned-charge-lost-fee').prop('checked') ? true : false; $('#claims-returned-modal').modal('hide'); -- 2.39.5