Bug 17052: Display patron category description in the sidebar of paycollect
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 4 Aug 2016 16:19:37 +0000 (17:19 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 10 Aug 2016 14:12:22 +0000 (14:12 +0000)
The patron category description is not passed to the template in
paycollect.pl

Note: The Categories TT plugin should be used here...

Test plan:
Go on paycollect.pl and confirm that the patron category description is
now displayed in the sidebar.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Brendon Ford <brendon.ford@manhattan.edu>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
members/paycollect.pl

index 5dd565c..aafca6d 100755 (executable)
@@ -149,6 +149,7 @@ $template->param(%$borrower);
 $template->param(
     borrowernumber => $borrowernumber,    # some templates require global
     borrower      => $borrower,
+    categoryname  => $borrower->{description},
     total         => $total_due,
     activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
     RoutingSerials => C4::Context->preference('RoutingSerials'),