summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Mello <timello@linux.vnet.ibm.com>2010-05-19 09:28:37 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-19 09:28:37 -0700
commit44bc791eb3aa690940d540a7154d93dc8b10f186 (patch)
tree9d489c9a0ee037d6341fd3f03f5d86d9543a6a98 /editfields.cgi
parentBug 376044: If we're running under mod_perl, use a refresh-style redirect (diff)
downloadbugzilla-44bc791eb3aa690940d540a7154d93dc8b10f186.tar.gz
bugzilla-44bc791eb3aa690940d540a7154d93dc8b10f186.tar.bz2
bugzilla-44bc791eb3aa690940d540a7154d93dc8b10f186.zip
Bug 494395: Implement the ability to mark custom fields as mandatory when
creating/changing bugs r=mkanat, a=mkanat
Diffstat (limited to 'editfields.cgi')
-rwxr-xr-xeditfields.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/editfields.cgi b/editfields.cgi
index 35f67ae3f..0f7a45fb7 100755
--- a/editfields.cgi
+++ b/editfields.cgi
@@ -69,6 +69,7 @@ elsif ($action eq 'new') {
visibility_value_id => scalar $cgi->param('visibility_value_id'),
value_field_id => scalar $cgi->param('value_field_id'),
reverse_desc => scalar $cgi->param('reverse_desc'),
+ is_mandatory => scalar $cgi->param('is_mandatory'),
});
delete_token($token);
@@ -111,6 +112,7 @@ elsif ($action eq 'update') {
$field->set_in_new_bugmail($cgi->param('new_bugmail'));
$field->set_enter_bug($cgi->param('enter_bug'));
$field->set_obsolete($cgi->param('obsolete'));
+ $field->set_is_mandatory($cgi->param('is_mandatory'));
$field->set_visibility_field($cgi->param('visibility_field_id'));
$field->set_visibility_value($cgi->param('visibility_value_id'));
$field->set_value_field($cgi->param('value_field_id'));