Bugzilla – Attachment 55462 Details for
Bug 17284
Patron details page ( moremember.pl ) show logged in library as patron's home library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 17284 - Patron details page ( moremember.pl ) show logged in library as patron's home library
PASSED-QA-Bug-17284---Patron-details-page--moremem.patch (text/plain), 2.81 KB, created by
Katrin Fischer
on 2016-09-10 08:27:01 UTC
(
hide
)
Description:
[PASSED QA] Bug 17284 - Patron details page ( moremember.pl ) show logged in library as patron's home library
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-09-10 08:27:01 UTC
Size:
2.81 KB
patch
obsolete
>From c4163915e3b16c7ff48f30dc2d061ebdac1df17d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 9 Sep 2016 14:24:31 +0000 >Subject: [PATCH] [PASSED QA] Bug 17284 - Patron details page ( moremember.pl ) > show logged in library as patron's home library > >The patron details page always show the logged in library as the >patron's home library instead of the true home library. This bug is >particular to moremember.pl and does not affect other patron pages. > >Test Plan: >1) Find a patron with a home library other than the logged in library >2) Note the patron home library as shown on moremember.pl matches > the logged in library and not the patron's true home library >3) Apply this patch >4) Reload moremember.pl, the correct home library should display! > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- > members/moremember.pl | 4 ---- > 2 files changed, 1 insertion(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 7aa57be..8212451 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -33,7 +33,7 @@ > var interface = "[% interface %]"; > var theme = "[% theme %]"; > var borrowernumber = "[% borrowernumber %]"; >-var branchcode = "[% branch %]"; >+var branchcode = "[% Branches.GetLoggedInBranchcode() %]"; > var exports_enabled = "[% exports_enabled %]"; > var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %] > var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %]; >diff --git a/members/moremember.pl b/members/moremember.pl >index 50a72f5..9f3ae74 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -269,8 +269,6 @@ if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preferen > my $patron_image = Koha::Patron::Images->find($data->{borrowernumber}); > $template->param( picture => 1 ) if $patron_image; > >-my $branch=C4::Context->userenv->{'branch'}; >- > $template->param(%$data); > > if (C4::Context->preference('ExtendedPatronAttributes')) { >@@ -319,8 +317,6 @@ $template->param( > othernames => $data->{'othernames'}, > categoryname => $data->{'description'}, > was_renewed => scalar $input->param('was_renewed') ? 1 : 0, >- branch => $branch, >- branchcode => $branch, > todaysdate => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), > totalprice => sprintf("%.2f", $totalprice), > totaldue => sprintf("%.2f", $total), >-- >2.7.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 17284
:
55443
|
55446
| 55462