Bugzilla – Attachment 7176 Details for
Bug 7364
Fast-Add framework doesn't always get the branch for item creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Syntax-corrected patch
0001-Bug-7364-Possible-to-get-to-FA-item-add-without-curr.patch (text/plain), 1.42 KB, created by
Ian Walls
on 2012-01-16 18:07:36 UTC
(
hide
)
Description:
Syntax-corrected patch
Filename:
MIME Type:
Creator:
Ian Walls
Created:
2012-01-16 18:07:36 UTC
Size:
1.42 KB
patch
obsolete
>From c6110083c7e131392875368055f072fa47856145 Mon Sep 17 00:00:00 2001 >From: D Ruth Bavousett <ruth@bywatersolutions.com> >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 <chrisc@catalyst.net.nz> > >Modified for syntax by: Ian Walls <ian.walls@bywatersolutions.com> >Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com> >--- > cataloguing/additem.pl | 5 +---- > 1 files changed, 1 insertions(+), 4 deletions(-) > >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index a734d0f..d22558f 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -665,10 +665,7 @@ my $onlymine = C4::Context->preference('IndependantBranches') && > C4::Context->userenv && > C4::Context->userenv->{flags}!=1 && > C4::Context->userenv->{branch}; >-my $branch = C4::Context->userenv->{branch}; >-if ($frameworkcode eq 'FA'){ >- $branch = $input->param('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 >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7364
:
6835
|
6847
| 7176