Bugzilla – Attachment 33883 Details for
Bug 13330
All overdue items with fines returned via checkouts table will have fines forgiven!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13330 - All overdue items with fines returned via checkouts table will have fines forgiven!
PASSED-QA-Bug-13330---All-overdue-items-with-fines.patch (text/plain), 1.63 KB, created by
Katrin Fischer
on 2014-11-24 21:50:22 UTC
(
hide
)
Description:
[PASSED QA] Bug 13330 - All overdue items with fines returned via checkouts table will have fines forgiven!
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-11-24 21:50:22 UTC
Size:
1.63 KB
patch
obsolete
>From 9ec859926eabf15c9d741cdb55ecd9e82f4a9151 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 24 Nov 2014 10:18:50 -0500 >Subject: [PATCH] [PASSED QA] Bug 13330 - All overdue items with fines returned > via checkouts table will have fines forgiven! > >Due to a disconnect between how booleans are handled in Perl vs JSON, >all checkins done from the checkouts table will have fines forgiven! >This is because the parameters sent to svc/checkin are coded in JSON >and the JSON false is treated in Perl as the string 'false' which >evaluates to true! > >Test Plan: >1) Find a patron with an overdue item that has a fine >2) Return the item via the checkouts table on circulation.pl or moremember.pl >3) Note the fine is forgiven >4) Apply this patch >5) Repeat steps 1-2 >6) Note the fine is no longer forgiven > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >Verified bug, fix corrects the problem. > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Also tested waiving fines form the check-in page still works. >Passes tests and QA script. >--- > svc/checkin | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/svc/checkin b/svc/checkin >index 2ca539c..c10a1b8 100755 >--- a/svc/checkin >+++ b/svc/checkin >@@ -47,6 +47,10 @@ my $exempt_fine = $input->param('exempt_fine'); > my $branchcode = $input->param('branchcode') > || C4::Context->userenv->{'branch'}; > >+# Expect these inputs to come in as JSON boolean values >+$override_limit = $override_limit ? $override_limit eq 'true' : undef; >+$exempt_fine = $exempt_fine ? $exempt_fine eq 'true' : undef; >+ > my $barcode = GetBarcodeFromItemnumber($itemnumber); > > my $data; >-- >1.9.1
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 13330
:
33874
|
33875
|
33881
| 33883