]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 785729 - Webservice Bug.fields (_legal_field_values) should return isactive for...
authorFrank Becker <Frank@Frank-Becker.de>
Fri, 31 Aug 2012 21:04:05 +0000 (17:04 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Fri, 31 Aug 2012 21:04:05 +0000 (17:04 -0400)
r=dkl, a=LpSolit

Bugzilla/WebService/Bug.pm

index ea5f82999e3771851289849a0847f50ab69c09b3..c787aed5cf2cbff40afe0cbba72804d75bea7234 100644 (file)
@@ -167,6 +167,7 @@ sub _legal_field_values {
                     sort_key => $self->type('int', $sortkey),
                     sortkey  => $self->type('int', $sortkey), # deprecated
                     visibility_values => [$self->type('string', $product_name)],
+                    is_active         => $self->type('boolean', $value->is_active()),
                 });
             }
         }
@@ -1190,6 +1191,11 @@ if the C<value_field> is set to one of the values listed in this array.
 Note that for per-product fields, C<value_field> is set to C<'product'>
 and C<visibility_values> will reflect which product(s) this value appears in.
 
+=item C<is_active>
+
+C<boolean> True when the version, target_milestone or component is active,
+false when the element is retired.
+
 =item C<description>
 
 C<string> The description of the value. This item is only included for the