From af2ae55fbcad961e42f750625c87fd5077d0e4e1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 28 Sep 2006 21:53:02 +0000 Subject: Bug 354304: Changing several bugs at once fails if aliases are in use - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 5ac2f2b0b..d62d69095 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -162,9 +162,9 @@ sub new { # If we get something that looks like a word (not a number), # make it the "name" param. - if (!ref($param) && $param !~ /^\d+$/) { + if (!defined $param || (!ref($param) && $param !~ /^\d+$/)) { # But only if aliases are enabled. - if (Bugzilla->params->{'usebugaliases'}) { + if (Bugzilla->params->{'usebugaliases'} && $param) { $param = { name => $param }; } else { -- cgit v1.2.3-24-g4f1b