diff --git a/inc/fields.class.php b/inc/fields.class.php index e9a93d5e2..ea4c832dd 100644 --- a/inc/fields.class.php +++ b/inc/fields.class.php @@ -185,7 +185,10 @@ public static function isVisible(PluginFormcreatorConditionnableInterface $item, $nextLogic = 'OR'; } - // TODO: find the best behavior if the question does not exists + if (!isset($fields[$condition['field']])) { + // The field does not exists, give up and make the field visible + return true; + } $conditionField = $fields[$condition['field']]; $value = false;