diff options
author | travis%sedsystems.ca <> | 2005-03-01 05:31:31 +0000 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-03-01 05:31:31 +0000 |
commit | e9f024d42a579703d86707d757f60e115610d31f (patch) | |
tree | f063b56cc741e3985fca1ce2a81904854681b0c0 | |
parent | c62518c3fdaf04fbab67a1e3ad643bb9c54f43cf (diff) | |
download | bugs-e9f024d42a579703d86707d757f60e115610d31f.tar bugs-e9f024d42a579703d86707d757f60e115610d31f.tar.gz bugs-e9f024d42a579703d86707d757f60e115610d31f.tar.bz2 bugs-e9f024d42a579703d86707d757f60e115610d31f.tar.xz bugs-e9f024d42a579703d86707d757f60e115610d31f.zip |
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
-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'}'"; } } |