From: lpsolit%gmail.com <> Date: Thu, 28 Sep 2006 21:53:02 +0000 (+0000) Subject: Bug 354304: Changing several bugs at once fails if aliases are in use - Patch by... X-Git-Tag: bugzilla-2.23.3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2ae55fbcad961e42f750625c87fd5077d0e4e1;p=thirdparty%2Fbugzilla.git Bug 354304: Changing several bugs at once fails if aliases are in use - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 5ac2f2b0b6..d62d690959 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 {