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
4c622071
Commit
4c622071
authored
Mar 28, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 554536: [WebService] Make Bug.fields not send the "values" item for
fields that don't have a list of values r=dkl, a=mkanat
parent
52c568cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Bug.pm
Bugzilla/WebService/Bug.pm
+9
-5
No files found.
Bugzilla/WebService/Bug.pm
View file @
4c622071
...
...
@@ -98,10 +98,11 @@ sub fields {
my
$value_field
=
$field
->
value_field
?
$field
->
value_field
->
name
:
undef
;
my
@values
;
my
(
@values
,
$has_values
)
;
if
(
(
$field
->
is_select
and
$field
->
name
ne
'product'
)
or
grep
(
$_
eq
$field
->
name
,
PRODUCT_SPECIFIC_FIELDS
))
{
$has_values
=
1
;
@values
=
@
{
$self
->
_legal_field_values
({
field
=>
$field
})
};
}
...
...
@@ -109,7 +110,7 @@ sub fields {
$value_field
=
'product'
;
}
push
(
@fields_out
,
filter
$params
,
{
my
%
field_data
=
(
id
=>
$self
->
type
(
'int'
,
$field
->
id
),
type
=>
$self
->
type
(
'int'
,
$field
->
type
),
is_custom
=>
$self
->
type
(
'boolean'
,
$field
->
custom
),
...
...
@@ -118,9 +119,12 @@ sub fields {
is_on_bug_entry
=>
$self
->
type
(
'boolean'
,
$field
->
enter_bug
),
visibility_field
=>
$self
->
type
(
'string'
,
$visibility_field
),
visibility_values
=>
[
$self
->
type
(
'string'
,
$visibility_value
)],
value_field
=>
$self
->
type
(
'string'
,
$value_field
),
values
=>
\
@values
,
});
);
if
(
$has_values
)
{
$field_data
{
value_field
}
=
$self
->
type
(
'string'
,
$value_field
);
$field_data
{
values
}
=
\
@values
;
};
push
(
@fields_out
,
filter
$params
,
\%
field_data
);
}
return
{
fields
=>
\
@fields_out
};
...
...
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