[Koha-bugs] [Bug 13025] Software error: Undefined subroutine &C4::Circulation::HasOverdues called at /home/koha/kohaclone/C4/Circulation.pm line 1925
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 8 17:33:11 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13025
--- Comment #6 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
!!!!! 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.
More information about the Koha-bugs
mailing list