PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
← All changes | includes/Frontend/Form/View/Conversational/Fields/TextField.php +1 -1 3.1.0 → V3.3.2 View file →
@@ -39,9 +39,9 @@
39 39 $bfFrontendFormIds = FrontendHelpers::$bfFrontendFormIds;
40 40 $contentCount = count($bfFrontendFormIds);
41 41 $sugg = apply_filters('bitform_field_suggestions_datalist', '', $field, $rowID, $contentCount);
42 42
43 - if (property_exists($field, 'suggestions') && count($field->suggestions) > 0) {
43 + if (is_object($field) && property_exists($field, 'suggestions') && is_countable($field->suggestions) && count($field->suggestions) > 0) {
44 44 $list = "list='{$rowID}-{$contentCount}-datalist'";
45 45 }
46 46
47 47 $inputWrapperCustomAttributes = $fieldHelpers->getCustomAttributes('inp-fld-wrp');