Bug 10904: (QA followup) Use branch limit if either IndependentBranches or IndependentBranchesPatronModifications is enabled
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> 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 <Katrin.Fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
e5571ddd66
commit
11bfcd0dd6
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue