]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 283183 : check_multi in Config.pm returns a bad error message if the check fails
authortravis%sedsystems.ca <>
Tue, 1 Mar 2005 05:31:31 +0000 (05:31 +0000)
committertravis%sedsystems.ca <>
Tue, 1 Mar 2005 05:31:31 +0000 (05:31 +0000)
iPtch by Frederic Buclin <LpSolit@gmail.com>   r=mkanat  a=myk

Bugzilla/Config.pm

index f843f36b4e8dad8b91bafaf200d68bd7dad1be96..097c7b6c45d3b74e2ad00a06492116275f2d05b1 100644 (file)
@@ -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'}'";
             }
         }