Commit af2ae55f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 354304: Changing several bugs at once fails if aliases are in use - Patch by…

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
parent 1fd545a1
...@@ -162,9 +162,9 @@ sub new { ...@@ -162,9 +162,9 @@ sub new {
# If we get something that looks like a word (not a number), # If we get something that looks like a word (not a number),
# make it the "name" param. # make it the "name" param.
if (!ref($param) && $param !~ /^\d+$/) { if (!defined $param || (!ref($param) && $param !~ /^\d+$/)) {
# But only if aliases are enabled. # But only if aliases are enabled.
if (Bugzilla->params->{'usebugaliases'}) { if (Bugzilla->params->{'usebugaliases'} && $param) {
$param = { name => $param }; $param = { name => $param };
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment