From 777355089a3d10c7b72a4a21d9aaeb32ad8999f9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 9 Sep 2016 14:24:31 +0000 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- 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 7aa57be920..8212451d5d 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 50a72f552e..9f3ae74bdb 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.39.5