summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Field.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Field.pm b/Bugzilla/Field.pm
index 17459cb2c..3a593e238 100644
--- a/Bugzilla/Field.pm
+++ b/Bugzilla/Field.pm
@@ -795,7 +795,7 @@ sub run_create_validators {
$class->_check_control_value($params->{visibility_value_id},
$params->{visibility_field_id});
- my $type = $params->{type};
+ my $type = $params->{type} || 0;
$params->{value_field_id} =
$class->_check_value_field_id($params->{value_field_id},
($type == FIELD_TYPE_SINGLE_SELECT