http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13025
--- Comment #6 from Olli-Antti Kivilahti <[email protected]> --- !!!!! This is the original code !!!!! # Remove any OVERDUES related debarment if the borrower has no overdues if ( $borrowernumber&& $borrower->{'debarred'} && C4::Context->preference('AutoRemoveOverduesRestrictions') && !HasOverdues( $borrowernumber ) && @{ GetDebarments({ borrowernumber => $borrowernumber, type => 'OVERDUES' }) } ) { DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); } !!!!! I tried with this one, but got the same error !!!!! # Remove any OVERDUES related debarment if the borrower has no overdues if ( not(HasOverdues( $borrowernumber )) ) { DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); } !!!!! If someone knows what is the root cause, let me know :) !!!!! -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
