summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-10-18 22:49:20 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-10-18 22:49:20 +0200
commite3f3c2566be8ce17b7d854c120e036a91a36fe0f (patch)
tree5f330cf6b7df12976a7ea7b3b1ececcfea550b4d /Bugzilla
parent3e42acb389a5d7a7a04cb7768ca3a0ecc2c471ed (diff)
parent1b68b3315e62ca5c0f761f947db9ffadd91c435f (diff)
downloadbugzilla-e3f3c2566be8ce17b7d854c120e036a91a36fe0f.tar.gz
bugzilla-e3f3c2566be8ce17b7d854c120e036a91a36fe0f.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/Bug.pm2
-rw-r--r--Bugzilla/WebService/Product.pm19
2 files changed, 3 insertions, 18 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index c2083a59f..8506c4b47 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -1059,7 +1059,7 @@ containing the following keys:
=item C<id>
-C<int> An integer id uniquely idenfifying this field in this installation only.
+C<int> An integer id uniquely identifying this field in this installation only.
=item C<type>
diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm
index 842657575..3414be4fd 100644
--- a/Bugzilla/WebService/Product.pm
+++ b/Bugzilla/WebService/Product.pm
@@ -128,7 +128,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 {
@@ -148,20 +148,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 {
@@ -360,8 +346,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>