diff --git a/src/fields/Assets.php b/src/fields/Assets.php index 4b0d8c17..1c73b3a7 100644 --- a/src/fields/Assets.php +++ b/src/fields/Assets.php @@ -145,7 +145,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/CalendarEvents.php b/src/fields/CalendarEvents.php index 001d29d2..ce42bd9e 100644 --- a/src/fields/CalendarEvents.php +++ b/src/fields/CalendarEvents.php @@ -102,7 +102,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/Categories.php b/src/fields/Categories.php index 9f96df64..48fef678 100644 --- a/src/fields/Categories.php +++ b/src/fields/Categories.php @@ -111,7 +111,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/CommerceProducts.php b/src/fields/CommerceProducts.php index 7e4fc892..860dd520 100644 --- a/src/fields/CommerceProducts.php +++ b/src/fields/CommerceProducts.php @@ -107,7 +107,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/CommerceVariants.php b/src/fields/CommerceVariants.php index cbc015d7..92eca277 100644 --- a/src/fields/CommerceVariants.php +++ b/src/fields/CommerceVariants.php @@ -106,7 +106,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/DigitalProducts.php b/src/fields/DigitalProducts.php index 8796827a..864b91b9 100644 --- a/src/fields/DigitalProducts.php +++ b/src/fields/DigitalProducts.php @@ -107,7 +107,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/Entries.php b/src/fields/Entries.php index 6cf59dbc..c7c5eaf3 100644 --- a/src/fields/Entries.php +++ b/src/fields/Entries.php @@ -122,7 +122,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/Tags.php b/src/fields/Tags.php index 67f82ef6..b7835a81 100644 --- a/src/fields/Tags.php +++ b/src/fields/Tags.php @@ -105,7 +105,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; } diff --git a/src/fields/Users.php b/src/fields/Users.php index de44883a..95d30853 100644 --- a/src/fields/Users.php +++ b/src/fields/Users.php @@ -131,7 +131,7 @@ public function parseField(): mixed // special provision for falling back on default BaseRelationField value // https://github.com/craftcms/feed-me/issues/1195 - if (trim($dataValue) === '') { + if (DataHelper::isArrayValueEmpty($value)) { $foundElements = $default; break; }