From 553d37d3443028b79961346db3e40ed6c295b11f 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. --- 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 2b2c418521..d4abddbf27 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.30.2