[Koha-patches] [PATCH] Bug 13470 - pay fines with extended borrower attributes result in application error

Dobrica Pavlinusic dpavlin at rot13.org
Tue Dec 16 12:52:46 CET 2014


Test scenario:

1. ensure that extended patron attributes are turned on in system preferences
2. find borrower which has fine to pay, and click on pay button
3. verify application error
4. apply patch and verify that application error is gone
---
 members/paycollect.pl |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/members/paycollect.pl b/members/paycollect.pl
index ca47862..6473f02 100755
--- a/members/paycollect.pl
+++ b/members/paycollect.pl
@@ -149,6 +149,7 @@ $template->param(
     total         => $total_due,
     activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
     RoutingSerials => C4::Context->preference('RoutingSerials'),
+    ExtendedPatronAttributes => C4::Context->preference('ExtendedPatronAttributes'),
 );
 
 output_html_with_http_headers $input, $cookie, $template->output;
@@ -179,9 +180,6 @@ sub borrower_add_additional_fields {
 
     if (C4::Context->preference('ExtendedPatronAttributes')) {
         $b_ref->{extendedattributes} = GetBorrowerAttributes($borrowernumber);
-        $template->param(
-            ExtendedPatronAttributes => 1,
-        );
     }
 
     # Computes full borrower address
-- 
1.7.2.5



More information about the Koha-patches mailing list