Bugzilla – Attachment 65800 Details for
Bug 19074
Show patron category description instead of code in patron batch modification list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19074: Fix category display in Batch patron modification.
Bug-19074-Fix-category-display-in-Batch-patron-mod.patch (text/plain), 2.52 KB, created by
Alex Sassmannshausen
on 2017-08-10 11:36:09 UTC
(
hide
)
Description:
Bug 19074: Fix category display in Batch patron modification.
Filename:
MIME Type:
Creator:
Alex Sassmannshausen
Created:
2017-08-10 11:36:09 UTC
Size:
2.52 KB
patch
obsolete
>From 630585f9645468029e2849ddf65852c10412272a Mon Sep 17 00:00:00 2001 >From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> >Date: Thu, 10 Aug 2017 13:33:36 +0200 >Subject: [PATCH] Bug 19074: Fix category display in Batch patron modification. > >* tools/modborrowers.pl (GetBorrowerInfos): Fix setting of patron > category description. >* koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt: Use > it. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- > tools/modborrowers.pl | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >index 0ff04f5b27..74705639a5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -282,7 +282,7 @@ > <td>[% borrower.surname %]</td> > <td>[% borrower.firstname %]</td> > <td>[% Branches.GetName( borrower.branchcode ) %]</td> >- <td>[% borrower.categorycode %]</td> >+ <td>[% borrower.category_description %]</td> > <td>[% borrower.city %]</td> > <td>[% borrower.state %]</td> > <td>[% borrower.zipcode %]</td> >diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl >index 720e2a107e..7acc9a8a33 100755 >--- a/tools/modborrowers.pl >+++ b/tools/modborrowers.pl >@@ -367,6 +367,7 @@ exit; > sub GetBorrowerInfos { > my ( %info ) = @_; > my $borrower = Koha::Patrons->find( \%info ); >+ my $catdesc = $borrower->category->description; > if ( $borrower ) { > $borrower = $borrower->unblessed; > for ( qw(dateenrolled dateexpiry) ) { >@@ -377,7 +378,7 @@ sub GetBorrowerInfos { > } > $borrower->{$_} = $userdate || ''; > } >- $borrower->{category_description} = Koha::Patron::Categories->find( $borrower->{categorycode} )->{description}; >+ $borrower->{category_description} = $catdesc; > my $attr_loop = C4::Members::Attributes::GetBorrowerAttributes( $borrower->{borrowernumber} ); > $borrower->{patron_attributes} = $attr_loop; > } >-- >2.13.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 19074
:
65798
|
65800
|
65806
|
65839
|
65840