From 8befe045349ae2ba4d0ff0de26d4f8a5e15a5f0a Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 18 May 2025 16:00:16 +0200 Subject: [PATCH] FREC : checkbox, checked by range, hidden elements must not be checked --- include/compta_fin_rec.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php index 7d45cd9a1..fbc1c09d3 100644 --- a/include/compta_fin_rec.inc.php +++ b/include/compta_fin_rec.inc.php @@ -74,8 +74,9 @@ bcscale(2); } var check = (aName[from].checked) ? true : false; for (x = from; x <= end; x++) { + if ( window.getComputedStyle(aName[x].parentNode.parentNode).display == "none" ) { continue; } aName[x].checked = check; - if( x < end && x > from ) { + if( x < end && x > from ) { Bank_Reconciliation.update_selected(aName[x],aName[x].getAttribute('amount_operation')); Bank_Reconciliation.update_remain(aName[x],aName[x].getAttribute('amount_operation')); } @@ -135,7 +136,8 @@ bcscale(2); var i=0; for (i=0;i