Skip to content

Commit

Permalink
fix(form_validator): php errors in import process
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 9, 2021
1 parent 53b32e3 commit 7ae01dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/form_validator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 7ae01dc

Please sign in to comment.