Bugzilla – Attachment 76424 Details for
Bug 20903
Print payment receipt on child patron could end with server error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20903: Remove unnecessary category code parameters
Bug-20903-Remove-unnecessary-category-code-paramet.patch (text/plain), 1.31 KB, created by
Katrin Fischer
on 2018-06-25 21:40:31 UTC
(
hide
)
Description:
Bug 20903: Remove unnecessary category code parameters
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-06-25 21:40:31 UTC
Size:
1.31 KB
patch
obsolete
>From dc36e529d568b0aa1b55c404b6a24bfa866dc75c Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Fri, 8 Jun 2018 09:43:13 +0000 >Subject: [PATCH] Bug 20903: Remove unnecessary category code parameters > >Test plan: >0) Do no apply the patch >1) Have only one adults patrons category defined >2) Add a fine to child patron and pay it >3) Try to print the payment receipt (file printfeercpt.pl) >4) You see only ISE >5) Apply the patch >6) Try the printing again >7) Now you should see right receipt > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > members/printfeercpt.pl | 6 ------ > 1 file changed, 6 deletions(-) > >diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl >index c73f8f5..a6f5fb1 100755 >--- a/members/printfeercpt.pl >+++ b/members/printfeercpt.pl >@@ -58,12 +58,6 @@ if ( $action eq 'print' ) { > # ReversePayment( $borrowernumber, $input->param('accountno') ); > } > >-if ( $patron->is_child ) { >- my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); >- $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; >- $template->param( 'catcode' => $patron_categories->next->categorycde ) if $patron_categories->count == 1; >-} >- > #get account details > my $total = $patron->account->balance; > >-- >2.1.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 20903
:
75915
|
76424
|
76454