We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0fa2d commit 9c75f62Copy full SHA for 9c75f62
inc/conditionnable.class.php
@@ -46,6 +46,12 @@ public function updateConditions($input) {
46
// All arrays of condition exists
47
if (!isset($input['plugin_formcreator_questions_id']) || !isset($input['show_condition'])
48
|| !isset($input['show_value']) || !isset($input['show_logic'])) {
49
+ $this->deleteConditions();
50
+ $this->update([
51
+ 'id' => $this->fields['id'],
52
+ '_skip_checks' => true,
53
+ 'show_rule' => PluginFormcreatorCondition::SHOW_RULE_ALWAYS,
54
+ ]);
55
return false;
56
}
57
0 commit comments