From 7ae01dc90d414bfc5af44fa77dd2b5c56fc15210 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 9 Sep 2021 14:04:32 +0200 Subject: [PATCH] fix(form_validator): php errors in import process Signed-off-by: Thierry Bugier --- inc/form_validator.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/form_validator.class.php b/inc/form_validator.class.php index 3e588e11a..65b8e7077 100644 --- a/inc/form_validator.class.php +++ b/inc/form_validator.class.php @@ -71,6 +71,8 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $for $input[$formFk] = $forms_id; $item = new self(); + // Find an existing form to update, only if an UUID is available + $itemId = false; /** @var string $idKey key to use as ID (id or uuid) */ $idKey = 'id'; if (isset($input['uuid'])) {