Bugzilla – Attachment 55446 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]
[SIGNED-OFF] Bug 17284 - Patron details page ( moremember.pl ) show logged in library as patron's home library
SIGNED-OFF-Bug-17284---Patron-details-page--moreme.patch (text/plain), 2.79 KB, created by
Owen Leonard
on 2016-09-09 15:46:22 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17284 - Patron details page ( moremember.pl ) show logged in library as patron's home library
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-09-09 15:46:22 UTC
Size:
2.79 KB
patch
obsolete
>From 559160a008bbe8090d2bde6c0623911c1400a024 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] [SIGNED-OFF] Bug 17284 - Patron details page ( moremember.pl > ) show logged in library as patron's home library >Content-Type: text/plain; charset="utf-8" > >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> >--- > 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.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 17284
:
55443
|
55446
|
55462