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
25603c49
Commit
25603c49
authored
Oct 15, 2011
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 689862: Fix Product.get to only return the Classification name,
instead of all the classification info. r/a=LpSolit
parent
f7e95019
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
Product.pm
Bugzilla/WebService/Product.pm
+2
-17
No files found.
Bugzilla/WebService/Product.pm
View file @
25603c49
...
...
@@ -195,7 +195,7 @@ sub _product_to_hash {
is_active
=>
$self
->
type
(
'boolean'
,
$product
->
is_active
),
default_milestone
=>
$self
->
type
(
'string'
,
$product
->
default_milestone
),
has_unconfirmed
=>
$self
->
type
(
'boolean'
,
$product
->
allows_unconfirmed
),
classification
=>
$self
->
_classification_to_hash
(
$product
->
classification
),
classification
=>
$self
->
type
(
'string'
,
$product
->
classification
->
name
),
};
if
(
filter_wants
(
$params
,
'components'
))
{
$field_data
->
{
components
}
=
[
map
{
...
...
@@ -215,20 +215,6 @@ sub _product_to_hash {
return
filter
(
$params
,
$field_data
);
}
sub
_classification_to_hash
{
my
(
$self
,
$classification
)
=
@_
;
return
{
id
=>
$self
->
type
(
'int'
,
$classification
->
id
),
name
=>
$self
->
type
(
'string'
,
$classification
->
name
),
description
=>
$self
->
type
(
'string'
,
$classification
->
description
),
sort_key
=>
$self
->
type
(
'int'
,
$classification
->
sortkey
),
};
}
sub
_component_to_hash
{
my
(
$self
,
$component
)
=
@_
;
return
{
...
...
@@ -427,8 +413,7 @@ for this product.
=item C<classification>
C<hash> Contains the classification C<id>, C<name>, C<description>
and C<sort_key> as keys.
C<string> The classification name for the product.
=item C<components>
...
...
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