diff --git a/inc/conditionnable.class.php b/inc/conditionnable.class.php index f0645169c..78ff73541 100644 --- a/inc/conditionnable.class.php +++ b/inc/conditionnable.class.php @@ -51,6 +51,10 @@ public function updateConditions($input) { if (!is_array($input['plugin_formcreator_questions_id']) || !is_array($input['show_condition']) || !is_array($input['show_value']) || !is_array($input['show_logic'])) { + $this->deleteConditions(); + $input['show_rule'] = PluginFormcreatorCondition::SHOW_RULE_ALWAYS; + $input['_skip_checks'] = true; + $this->update(['id' => $this->fields['id']] + $input); return false; }