From 0f25014e84d4ecf821374c30f3e9fd8ca33513de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Vela?= Date: Thu, 26 Jan 2023 10:50:26 +0100 Subject: [PATCH] LPS-173582 Check empty formfieldvalue to avoid setting an incorrect layout comming from another missing references --- .../processor/DDMFormValuesExportImportContentProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/internal/exportimport/content/processor/DDMFormValuesExportImportContentProcessor.java b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/internal/exportimport/content/processor/DDMFormValuesExportImportContentProcessor.java index 9bde62bd5479d5..4c692a417ae9bf 100644 --- a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/internal/exportimport/content/processor/DDMFormValuesExportImportContentProcessor.java +++ b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/internal/exportimport/content/processor/DDMFormValuesExportImportContentProcessor.java @@ -664,6 +664,10 @@ public void transform(DDMFormFieldValue ddmFormFieldValue) continue; } + if (jsonObject.length() == 0) { + continue; + } + Layout importedLayout = fetchImportedLayout( _portletDataContext, jsonObject);