]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 602458: Add is_mandatory to Bug.fields output
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 27 Oct 2010 07:52:58 +0000 (00:52 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 27 Oct 2010 07:52:58 +0000 (00:52 -0700)
r=timello, a=mkanat

Bugzilla/WebService/Bug.pm

index 7d455a25ab938c06111cc3e16434c316b3c0d880..10a7e786e4b2623091eccec0517a84a42c9954a3 100644 (file)
@@ -133,6 +133,7 @@ sub fields {
            is_custom         => $self->type('boolean', $field->custom),
            name              => $self->type('string', $field->name),
            display_name      => $self->type('string', $field->description),
+           is_mandatory      => $self->type('boolean', $field->is_mandatory),
            is_on_bug_entry   => $self->type('boolean', $field->enter_bug),
            visibility_field  => $self->type('string', $visibility_field),
            visibility_values => [
@@ -1041,6 +1042,12 @@ across all Bugzilla installations.
 
 C<string> The name of the field, as it is shown in the user interface.
 
+=item C<is_mandatory>
+
+C<boolean> True if the field must have a value when filing new bugs.
+Also, mandatory fields cannot have their value cleared when updating
+bugs.
+
 =item C<is_on_bug_entry>
 
 C<boolean> For custom fields, this is true if the field is shown when you
@@ -1146,6 +1153,8 @@ You specified an invalid field name or id.
 
 =item Added in Bugzilla B<3.6>.
 
+=item The C<is_mandatory> return value was added in Bugzilla B<4.0>.
+
 =back
 
 =back