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

This commit is contained in:
lpsolit%gmail.com 2006-09-28 14:53:02 +00:00
parent e06a3a332a
commit f4e43f6d10

View File

@ -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 {