From 11bfcd0dd621fe0dfd3e058b6461e36d4db59454 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 17 Apr 2014 10:18:26 -0400 Subject: [PATCH] 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 Signed-off-by: Tomas Cohen Arazi --- mainpage.pl | 3 ++- members/members-update.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mainpage.pl b/mainpage.pl index d0635cbbb6..e2651d8d03 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -56,7 +56,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 39e29ff649..1ab8131098 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; -- 2.39.5