Skip to content

Commit 15907b8

Browse files
committed
fix(section): bad update when importing a section with conditions
1 parent 8e06c17 commit 15907b8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

inc/section.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ public function prepareInputForUpdate($input) {
173173
$input['uuid'] = plugin_formcreator_getUuid();
174174
}
175175

176-
if (!$this->checkConditionSettings($input)) {
177-
$input['show_rule'] = PluginFormcreatorCondition::SHOW_RULE_ALWAYS;
176+
if (!$this->skipChecks) {
177+
if (!$this->checkConditionSettings($input)) {
178+
$input['show_rule'] = PluginFormcreatorCondition::SHOW_RULE_ALWAYS;
179+
}
178180
}
179181

180182
return $input;

0 commit comments

Comments
 (0)