From 977e1a401bebbd9259e8702bdab73df0619c6eb1 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 17 Jan 2012 09:32:21 +0100 Subject: [PATCH] Revert "Bug 7364: Possible to get to FA item add without current branch being defined." This reverts commit 6f681bec2d71d3d2b88aea5f8e0c15010241d580. --- cataloguing/additem.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 9ec9a382f3..a734d0fefe 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -665,7 +665,10 @@ my $onlymine = C4::Context->preference('IndependantBranches') && C4::Context->userenv && C4::Context->userenv->{flags}!=1 && C4::Context->userenv->{branch}; -my $branch = $input->param{'branch'} || C4::Context->userenv->{branch}; +my $branch = C4::Context->userenv->{branch}; +if ($frameworkcode eq 'FA'){ + $branch = $input->param('branch'); +} my $branches = GetBranchesLoop($branch,$onlymine); # build once ahead of time, instead of multiple times later. # We generate form, from actuel record -- 2.39.5