diff --git a/inc/condition.class.php b/inc/condition.class.php index e2b5db8ad..1635baea9 100644 --- a/inc/condition.class.php +++ b/inc/condition.class.php @@ -153,14 +153,8 @@ public static function import(PluginFormcreatorLinker $linker, array $input = [] // set ID for linked objects $linked = $linker->getObject($input['plugin_formcreator_questions_id'], PluginFormcreatorQuestion::class); if ($linked === false) { - $linked = new PluginFormcreatorQuestion(); - $linked->getFromDBByCrit([ - $idKey => $input['plugin_formcreator_questions_id'] - ]); - if ($linked->isNewItem()) { - $linker->postpone($input[$idKey], $item->getType(), $input, $containerId); - return false; - } + $linker->postpone($input[$idKey], $item->getType(), $input, $containerId); + return false; } /** @var CommonDBTM $linked */ $input['plugin_formcreator_questions_id'] = $linked->getID();