From 10b76a19dab79e34b4c1dc0f4ad025ff1b1fe4d4 Mon Sep 17 00:00:00 2001 From: woell Date: Thu, 3 Aug 2023 15:29:53 +0200 Subject: [PATCH] Extend empty check to "0" (#341) --- src/Mapping/Operator/Simple/LoadDataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mapping/Operator/Simple/LoadDataObject.php b/src/Mapping/Operator/Simple/LoadDataObject.php index 3589db9a..a9fc804d 100644 --- a/src/Mapping/Operator/Simple/LoadDataObject.php +++ b/src/Mapping/Operator/Simple/LoadDataObject.php @@ -106,7 +106,7 @@ public function process($inputData, bool $dryRun = false) foreach ($inputData as $data) { $object = null; $logMessage = ''; - if (empty($data) === false) { + if (empty($data) === false || $data === "0") { if ($this->loadStrategy === self::LOAD_STRATEGY_PATH) { $object = $this->dataObjectLoader->loadByPath(trim($data)); $logMessage = 'by path `' . trim($data) . '`';