Commit 0547231e authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 449700: Remove useless code from colchange.cgi - Patch by Fré©ric Buclin…

Bug 449700: Remove useless code from colchange.cgi - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 50dbcc4e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment