Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e9f024d4
Commit
e9f024d4
authored
Mar 01, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
c62518c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Config.pm
Bugzilla/Config.pm
+2
-2
No files found.
Bugzilla/Config.pm
View file @
e9f024d4
...
@@ -306,7 +306,7 @@ sub check_multi {
...
@@ -306,7 +306,7 @@ sub check_multi {
if
(
$param
->
{
'type'
}
eq
"s"
)
{
if
(
$param
->
{
'type'
}
eq
"s"
)
{
unless
(
scalar
(
grep
{
$_
eq
$value
}
(
@
{
$param
->
{
'choices'
}})))
{
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
""
;
return
""
;
...
@@ -314,7 +314,7 @@ sub check_multi {
...
@@ -314,7 +314,7 @@ sub check_multi {
elsif
(
$param
->
{
'type'
}
eq
"m"
)
{
elsif
(
$param
->
{
'type'
}
eq
"m"
)
{
foreach
my
$chkParam
(
@$value
)
{
foreach
my
$chkParam
(
@$value
)
{
unless
(
scalar
(
grep
{
$_
eq
$chkParam
}
(
@
{
$param
->
{
'choices'
}})))
{
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'}
'"
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment