diff options
author | Tiago Mello <timello@gmail.com> | 2010-08-27 05:27:08 +0200 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2010-08-27 05:27:08 +0200 |
commit | 0844fe9fc6d2d5293fad1384d2955dedf30fc8c4 (patch) | |
tree | 636a0bbcdf71017fda712e60cd1a0dc1b7038b7b /editfields.cgi | |
parent | d94865b30a92be8a3a900f8d1d8262d36044b1ca (diff) | |
download | bugzilla-0844fe9fc6d2d5293fad1384d2955dedf30fc8c4.tar.gz bugzilla-0844fe9fc6d2d5293fad1384d2955dedf30fc8c4.tar.xz |
Bug 479400: Add the ability to show or hide particular custom fields
based on multiple values of another field (visibility controllers)
r/a=mkanat
Diffstat (limited to 'editfields.cgi')
-rwxr-xr-x | editfields.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editfields.cgi b/editfields.cgi index e207a2ee4..cdf1008f7 100755 --- a/editfields.cgi +++ b/editfields.cgi @@ -66,7 +66,7 @@ elsif ($action eq 'new') { custom => 1, buglist => 1, visibility_field_id => scalar $cgi->param('visibility_field_id'), - visibility_value_id => scalar $cgi->param('visibility_value_id'), + visibility_values => [ $cgi->param('visibility_values') ], value_field_id => scalar $cgi->param('value_field_id'), reverse_desc => scalar $cgi->param('reverse_desc'), is_mandatory => scalar $cgi->param('is_mandatory'), @@ -114,7 +114,7 @@ elsif ($action eq 'update') { $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_visibility_values([ $cgi->param('visibility_values') ]); $field->set_value_field($cgi->param('value_field_id')); $field->set_reverse_desc($cgi->param('reverse_desc')); $field->update(); |