From 367f3357032edb349095703ad6ebfb5975064f18 Mon Sep 17 00:00:00 2001 From: Janne Suominen Date: Wed, 18 Dec 2024 14:30:56 +0200 Subject: [PATCH] Fix sotepeed + import --- conf/cmi/webform.webform.sotepe_yleis.yml | 6 +++--- .../src/Commands/WebformConfigOverrideCommands.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/cmi/webform.webform.sotepe_yleis.yml b/conf/cmi/webform.webform.sotepe_yleis.yml index a1bd7fe6f..3199ad7d6 100644 --- a/conf/cmi/webform.webform.sotepe_yleis.yml +++ b/conf/cmi/webform.webform.sotepe_yleis.yml @@ -17,14 +17,14 @@ third_party_settings: 49: '49' applicationTargetGroup: '30' applicationOpen: '2022-10-03T11:08:26' - applicationClose: '2029-07-30T11:19:00' + applicationClose: '2024-07-30T11:19:00' applicationActingYearsType: next_x_years applicationActingYears: { } applicationActingYearsNextCount: '1' applicationContinuous: 0 disableCopying: 0 - status: development - parent: d8472e68-d6bd-4de2-a409-f0a177bf9e94 + status: released + parent: "" avus2BreakingChange: 0 weight: 0 open: null diff --git a/public/modules/custom/grants_webform_import/src/Commands/WebformConfigOverrideCommands.php b/public/modules/custom/grants_webform_import/src/Commands/WebformConfigOverrideCommands.php index aaddf6c32..710f5f2b0 100644 --- a/public/modules/custom/grants_webform_import/src/Commands/WebformConfigOverrideCommands.php +++ b/public/modules/custom/grants_webform_import/src/Commands/WebformConfigOverrideCommands.php @@ -259,7 +259,7 @@ private function getApplicationTypeIdMapping(): array { // Get an array of all the items with a "parent". $itemsWithParent = array_filter($mapping, function ($item) { - return isset($item['parent']); + return isset($item['parent']) && $item['parent'] !== ""; }); // Get the parent UUIDs.