summaryrefslogtreecommitdiffstats
path: root/editfields.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editfields.cgi')
-rwxr-xr-xeditfields.cgi4
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();