summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-27 09:52:20 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-27 09:52:20 +0200
commit3cefbefe84dca3ae78449aefc80c1b90eaf22395 (patch)
tree3fe717859d5996dce523874f53b9c49a63847746 /Bugzilla/WebService
parent9ebea1545b38b16b5808979db5ec9e41c0ba7a3b (diff)
downloadbugzilla-3cefbefe84dca3ae78449aefc80c1b90eaf22395.tar.gz
bugzilla-3cefbefe84dca3ae78449aefc80c1b90eaf22395.tar.xz
Bug 602458: Add is_mandatory to Bug.fields output.
r=timello, a=mkanat
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 372f0725f..a36eed957 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -134,6 +134,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 =>
@@ -1045,6 +1046,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
@@ -1150,6 +1157,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