Skip to content

Commit

Permalink
Extend empty check to "0" (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
woellundwoell authored and robertSt7 committed Aug 3, 2023
1 parent cac31ed commit 10b76a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapping/Operator/Simple/LoadDataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) . '`';
Expand Down

0 comments on commit 10b76a1

Please sign in to comment.