From 4182dfc707f59fd51e72fa8f0692c24e6e2f11d4 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 17 Apr 2014 10:18:26 -0400 Subject: [PATCH] [PASSED QA] Bug 10904 [QA Followup] - Use branch limit if either IndependentBranches or IndependentBranchesPatronModifications is enabled Signed-off-by: Katrin Fischer Passes all tests and QA script. Behaviour now is: IndependentBranches = Prevent or IndependentBranches = Don't prevent, IndependentBranchesPatronModifications = Prevent: You will always only see the modification requests of your branch's patrons. IndependentBrnaches = Don't prevent, IndependentBranchesPatronModifications = Don't prevent All modification requests are shown. Link to patron record works and cardnumber is shown. IndependentBranches = OFF - use the new preference. Signed-off-by: Katrin Fischer --- mainpage.pl | 3 ++- members/members-update.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mainpage.pl b/mainpage.pl index e9ee176..3f8dac3 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -55,7 +55,8 @@ $template->param( ); my $branch = - C4::Context->preference("IndependentBranchesPatronModifications") + ( C4::Context->preference("IndependentBranchesPatronModifications") + || C4::Context->preference("IndependentBranches") ) && !$flags->{'superlibrarian'} ? C4::Context->userenv()->{'branch'} : undef; diff --git a/members/members-update.pl b/members/members-update.pl index ee1f7ee..ec0f3ee 100755 --- a/members/members-update.pl +++ b/members/members-update.pl @@ -42,7 +42,8 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( ); my $branch = - C4::Context->preference("IndependentBranchesPatronModifications") + ( C4::Context->preference("IndependentBranchesPatronModifications") + || C4::Context->preference("IndependentBranches") ) && !$flags->{'superlibrarian'} ? C4::Context->userenv()->{'branch'} : undef; -- 1.8.3.2