Bugzilla – Attachment 15336 Details for
Bug 9226
Wrong branch filter after suggestion creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9226: Wrong branch filter after suggestion creation
Bug-9226-Wrong-branch-filter-after-suggestion-crea.patch (text/plain), 2.15 KB, created by
Marcel de Rooy
on 2013-02-15 10:04:01 UTC
(
hide
)
Description:
Bug 9226: Wrong branch filter after suggestion creation
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-02-15 10:04:01 UTC
Size:
2.15 KB
patch
obsolete
>From affe0aff4f5d3b211d4622430eb19967664713b3 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 6 Dec 2012 15:11:57 +0100 >Subject: [PATCH] Bug 9226: Wrong branch filter after suggestion creation >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Before the patch, upon submitting a new suggestion in the staff client I >was redirected to a view which was not filtered by branch. After the >patch I was redirected to a view which was filtered by my logged-in >branch. >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > suggestion/suggestion.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl >index 7fa301e..b4f4d37 100755 >--- a/suggestion/suggestion.pl >+++ b/suggestion/suggestion.pl >@@ -82,7 +82,6 @@ my $returnsuggestedby = $input->param('returnsuggestedby'); > my $returnsuggested = $input->param('returnsuggested'); > my $managedby = $input->param('managedby'); > my $displayby = $input->param('displayby') || ''; >-my $branchfilter = ($displayby ne "branchcode") ? $input->param('branchcode') : ''; > my $tabcode = $input->param('tabcode'); > > # filter informations which are not suggestion related. >@@ -207,7 +206,7 @@ if ($op=~/else/) { > my $reasonsloop = GetAuthorisedValues("SUGGEST"); > foreach my $criteriumvalue ( @criteria_dv ) { > # By default, display suggestions from current working branch >- if(not defined $branchfilter) { >+ unless ( exists $$suggestion_ref{'branchcode'} ) { > $$suggestion_ref{'branchcode'} = C4::Context->userenv->{'branch'}; > } > my $definedvalue = defined $$suggestion_ref{$displayby} && $$suggestion_ref{$displayby} ne ""; >@@ -276,6 +275,7 @@ if(defined($returnsuggested) and $returnsuggested ne "noone") > ## Initializing selection lists > > #branch display management >+my $branchfilter = ($displayby ne "branchcode") ? $input->param('branchcode') : ''; > my $onlymine=C4::Context->preference('IndependantBranches') && > C4::Context->userenv && > C4::Context->userenv->{flags}!=1 && >-- >1.7.7.6
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 9226
:
13905
|
14273
| 15336