Commit 917ede93 authored by David Lawrence's avatar David Lawrence

Bug 829273: Certain webservice tests failing due to improper error being thrown…

Bug 829273: Certain webservice tests failing due to improper error being thrown for undef or empty bug id values r=glob,a=glob
parent c07333d9
......@@ -312,8 +312,8 @@ sub new {
# If we get something that looks like a word (not a number),
# make it the "name" param.
if (!defined $param
|| (!ref($param) && $param =~ /\D/)
|| (ref($param) && $param->{id} =~ /\D/))
|| (!ref($param) && $param !~ /^\d+$/)
|| (ref($param) && $param->{id} !~ /^\d+$/))
{
if ($param) {
my $alias = ref($param) ? $param->{id} : $param;
......
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