Bugzilla – Attachment 1500 Details for
Bug 3666
Overriding renewal limit results in negative count in OPAC display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
0001-Fix-for-Bug-3666-Overriding-renewal-limit-means-nega.patch (text/plain), 795 bytes, created by
Chris Cormack
on 2010-05-07 17:32:00 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-07 17:32:00 UTC
Size:
795 bytes
patch
obsolete
>From cb884c72841ee52b0c633ec5a4cf862a531c8eac Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 7 May 2010 13:29:45 -0400 >Subject: [PATCH] Fix for Bug 3666, Overriding renewal limit means negative count in OPAC > >Setting "renewalsleft" variable to zero if it comes out negative. >--- > C4/Circulation.pm | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index bceee8b..395494f 100644 >--- 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 ); > } > >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3666
: 1500