diff options
author | lpsolit%gmail.com <> | 2008-08-08 08:40:42 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-08-08 08:40:42 +0200 |
commit | 0547231eae6ebcbb033b6c1af706b537956e0624 (patch) | |
tree | 915c0ed65034305236e4af6594fe6325a1f41b9f /colchange.cgi | |
parent | 50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (diff) | |
download | bugzilla-0547231eae6ebcbb033b6c1af706b537956e0624.tar.gz bugzilla-0547231eae6ebcbb033b6c1af706b537956e0624.tar.xz |
Bug 449700: Remove useless code from colchange.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-x | colchange.cgi | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/colchange.cgi b/colchange.cgi index b2d33de7e..01af4baba 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -102,7 +102,6 @@ if (defined $cgi->param('rememberedquery')) { } } my $list = join(" ", @collist); - my $urlbase = Bugzilla->params->{"urlbase"}; if ($list) { # Only set the cookie if this is not a saved search. @@ -182,8 +181,7 @@ if (defined $cgi->param('query_based_on')) { my $searches = Bugzilla->user->queries; my ($search) = grep($_->name eq $cgi->param('query_based_on'), @$searches); - # Only allow users to edit their own queries. - if ($search && $search->user->id == Bugzilla->user->id) { + if ($search) { $vars->{'saved_search'} = $search; $vars->{'buffer'} = "cmdtype=runnamed&namedcmd=".$search->name; |