Skip to content

Commit

Permalink
fix(section): bad update when importing a section with conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 19, 2024
1 parent 8e06c17 commit 15907b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/section.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ public function prepareInputForUpdate($input) {
$input['uuid'] = plugin_formcreator_getUuid();
}

if (!$this->checkConditionSettings($input)) {
$input['show_rule'] = PluginFormcreatorCondition::SHOW_RULE_ALWAYS;
if (!$this->skipChecks) {
if (!$this->checkConditionSettings($input)) {
$input['show_rule'] = PluginFormcreatorCondition::SHOW_RULE_ALWAYS;
}
}

return $input;
Expand Down

0 comments on commit 15907b8

Please sign in to comment.