Commit cc883c81 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 90334: Do not display the "change several bugs at once" form if there are no…

Bug 90334: Do not display the "change several bugs at once" form if there are no bugs in the buglist - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 02c618aa
......@@ -1143,7 +1143,7 @@ $vars->{'quip'} = GetQuip();
$vars->{'currenttime'} = time();
# The following variables are used when the user is making changes to multiple bugs.
if ($dotweak) {
if ($dotweak && scalar @bugs) {
$vars->{'dotweak'} = 1;
$vars->{'valid_keywords'} = [map($_->name, Bugzilla::Keyword->get_all)];
$vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count();
......
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