From: Max Kanat-Alexander Date: Wed, 27 Oct 2010 07:52:58 +0000 (-0700) Subject: Bug 602458: Add is_mandatory to Bug.fields output X-Git-Tag: bugzilla-4.0rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e78401f1d0370b89905e30a08e3c7d3681d8e6f7;p=thirdparty%2Fbugzilla.git Bug 602458: Add is_mandatory to Bug.fields output r=timello, a=mkanat --- diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 7d455a25ab..10a7e786e4 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -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 The name of the field, as it is shown in the user interface. +=item C + +C 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 C 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 return value was added in Bugzilla B<4.0>. + =back =back