diff options
author | travis%sedsystems.ca <> | 2005-03-01 06:31:31 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-03-01 06:31:31 +0100 |
commit | e9f024d42a579703d86707d757f60e115610d31f (patch) | |
tree | f063b56cc741e3985fca1ce2a81904854681b0c0 /Bugzilla | |
parent | c62518c3fdaf04fbab67a1e3ad643bb9c54f43cf (diff) | |
download | bugzilla-e9f024d42a579703d86707d757f60e115610d31f.tar.gz bugzilla-e9f024d42a579703d86707d757f60e115610d31f.tar.xz |
Bug 283183 : check_multi in Config.pm returns a bad error message if the check fails
iPtch by Frederic Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index f843f36b4..097c7b6c4 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -306,7 +306,7 @@ sub check_multi { if ($param->{'type'} eq "s") { unless (scalar(grep {$_ eq $value} (@{$param->{'choices'}}))) { - return "Invalid choice '$value' for single-select list param '$param'"; + return "Invalid choice '$value' for single-select list param '$param->{'name'}'"; } return ""; @@ -314,7 +314,7 @@ sub check_multi { elsif ($param->{'type'} eq "m") { foreach my $chkParam (@$value) { unless (scalar(grep {$_ eq $chkParam} (@{$param->{'choices'}}))) { - return "Invalid choice '$chkParam' for multi-select list param '$param'"; + return "Invalid choice '$chkParam' for multi-select list param '$param->{'name'}'"; } } |