projects
/
koha_ffzg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e1001
)
Fix for Bug 3666, Overriding renewal limit means negative count in OPAC
author
Owen Leonard
<oleonard@myacpl.org>
Fri, 7 May 2010 17:31:37 +0000
(13:31 -0400)
committer
Galen Charlton
<gmcharlt@gmail.com>
Tue, 11 May 2010 10:01:36 +0000
(06:01 -0400)
Setting "renewalsleft" variable to zero if it comes out negative.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Circulation.pm
patch
|
blob
|
history
diff --git
a/C4/Circulation.pm
b/C4/Circulation.pm
index
bceee8b
..
395494f
100644
(file)
--- a/
C4/Circulation.pm
+++ b/
C4/Circulation.pm
@@
-2242,6
+2242,7
@@
sub GetRenewCount {
$renewsallowed = $issuingrule->{'renewalsallowed'};
$renewsleft = $renewsallowed - $renewcount;
+ if($renewsleft < 0){ $renewsleft = 0; }
return ( $renewcount, $renewsallowed, $renewsleft );
}