From 7f712bd94a77bf871e2123981924510d08fbc44d Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 4 Feb 2021 15:23:30 +0100 Subject: [PATCH] fix(section): fail to import condition settings Signed-off-by: Thierry Bugier --- inc/section.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/section.class.php b/inc/section.class.php index 910ea5ab9..f2c7029b7 100644 --- a/inc/section.class.php +++ b/inc/section.class.php @@ -133,11 +133,15 @@ public function pre_deleteItem() { } public function post_addItem() { - $this->updateConditions($this->input); + if (!isset($this->input['_skip_checks']) || !$this->input['_skip_checks']) { + $this->updateConditions($this->input); + } } public function post_updateItem($history = 1) { - $this->updateConditions($this->input); + if (!isset($this->input['_skip_checks']) || !$this->input['_skip_checks']) { + $this->updateConditions($this->input); + } } /**