From fbbda3fdb639d623837e7f0344c9f4e441793cf0 Mon Sep 17 00:00:00 2001 From: D Ruth Bavousett Date: Fri, 16 Dec 2011 10:38:47 -0500 Subject: [PATCH] Bug 7364: Possible to get to FA item add without current branch being defined. Some paths to the FA item-add screen didn't have a branch defined--if the param is set, use it, otherwise, use the user's logged in branch. Signed-off-by: Chris Cormack Modified for syntax by: Ian Walls Signed-off-by: Ian Walls Signed-off-by: Chris Nighswonger --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 9ec9a382f3..d22558fb41 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -665,7 +665,7 @@ 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 = $input->param('branch') || C4::Context->userenv->{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