From cc883c815a06bce21d353dcaa65aa3d7d4b0a73a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 9 Feb 2008 05:35:44 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buglist.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 493f4b3a9..b87cdf970 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(); -- cgit v1.2.3-24-g4f1b