diff options
author | lpsolit%gmail.com <> | 2006-09-28 23:53:02 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-09-28 23:53:02 +0200 |
commit | af2ae55fbcad961e42f750625c87fd5077d0e4e1 (patch) | |
tree | 866017f03544ca6fc25481c38560bc86a2516fc7 /Bugzilla | |
parent | 1fd545a11e886d21696963ba72acc1e78b7e289c (diff) | |
download | bugzilla-af2ae55fbcad961e42f750625c87fd5077d0e4e1.tar.gz bugzilla-af2ae55fbcad961e42f750625c87fd5077d0e4e1.tar.xz |
Bug 354304: Changing several bugs at once fails if aliases are in use - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |