From: Jason Stephenson Date: Sun, 2 Feb 2014 20:59:34 +0000 (-0500) Subject: LP#638509: Remove the stop_fines checks from do_renew's circulation search. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa19decaa84fc68d9acd37ebc0f9311265dcabaa;p=contrib%2FConifer.git LP#638509: Remove the stop_fines checks from do_renew's circulation search. Signed-off-by: Jason Stephenson Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index 7e38228c62..3bb329d8a2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -3771,18 +3771,13 @@ sub do_renew { my $self = shift; $self->log_me("do_renew()"); - # Make sure there is an open circ to renew that is not - # marked as LOST, CLAIMSRETURNED, or LONGOVERDUE + # Make sure there is an open circ to renew my $usrid = $self->patron->id if $self->patron; my $circ = $self->editor->search_action_circulation({ target_copy => $self->copy->id, xact_finish => undef, checkin_time => undef, - ($usrid ? (usr => $usrid) : ()), - '-or' => [ - {stop_fines => undef}, - {stop_fines => OILS_STOP_FINES_MAX_FINES} - ] + ($usrid ? (usr => $usrid) : ()) })->[0]; return $self->bail_on_events($self->editor->event) unless $circ;