From: lpsolit%gmail.com <> Date: Sat, 9 Feb 2008 05:35:44 +0000 (+0000) Subject: Bug 90334: Do not display the "change several bugs at once" form if there are no... X-Git-Tag: bugzilla-3.1.3~320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc883c815a06bce21d353dcaa65aa3d7d4b0a73a;p=thirdparty%2Fbugzilla.git Bug 90334: Do not display the "change several bugs at once" form if there are no bugs in the buglist - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/buglist.cgi b/buglist.cgi index 493f4b3a98..b87cdf9708 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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();