summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Field.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-11-07 19:58:12 +0100
committermkanat%bugzilla.org <>2008-11-07 19:58:12 +0100
commit2dcb25783adbebb426c8f22ca3606ade097056fe (patch)
tree188422f2c5aeaf34b85710d844302a07e127cafd /Bugzilla/Field.pm
parent185ec9c2ca9b1f3ea063e01b81e3ef605363b3e0 (diff)
downloadbugzilla-2dcb25783adbebb426c8f22ca3606ade097056fe.tar.gz
bugzilla-2dcb25783adbebb426c8f22ca3606ade097056fe.tar.xz
Handle "Use of uninitialized value in numeric eq (==) at Bugzilla/Field.pm line 799" that was being caused by the last checkin, during checksetup.
Diffstat (limited to 'Bugzilla/Field.pm')
-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