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
6463e47b
Commit
6463e47b
authored
Mar 28, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 554569: WebService Bug.fields: Make it so that if you request a field
by both id and name, only one field is returned r=dkl, a=mkanat
parent
05ba0f41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Bug.pm
Bugzilla/WebService/Bug.pm
+6
-4
No files found.
Bugzilla/WebService/Bug.pm
View file @
6463e47b
...
@@ -79,14 +79,16 @@ sub fields {
...
@@ -79,14 +79,16 @@ sub fields {
my
$names
=
$params
->
{
names
};
my
$names
=
$params
->
{
names
};
foreach
my
$field_name
(
@$names
)
{
foreach
my
$field_name
(
@$names
)
{
my
$loop_field
=
Bugzilla::
Field
->
check
(
$field_name
);
my
$loop_field
=
Bugzilla::
Field
->
check
(
$field_name
);
# Don't push in duplicate fields if we also asked for this field
# in "ids".
if
(
!
grep
(
$_
->
id
==
$loop_field
->
id
,
@fields
))
{
push
(
@fields
,
$loop_field
);
push
(
@fields
,
$loop_field
);
}
}
}
}
}
if
(
!
defined
$params
->
{
ids
}
if
(
!
defined
$params
->
{
ids
}
and
!
defined
$params
->
{
names
})
{
and
!
defined
$params
->
{
names
})
@fields
=
Bugzilla
->
get_fields
({
obsolete
=>
0
});
{
@fields
=
@
{
Bugzilla::
Field
->
match
({
obsolete
=>
0
})};
}
}
my
@fields_out
;
my
@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