From 43914a893dc64fa06d5fbca77915f9c89da2c79f Mon Sep 17 00:00:00 2001 From: olivierbon Date: Mon, 27 Nov 2023 10:13:16 +0100 Subject: [PATCH] Correct "Adjust for Super Table and Matrix" Corrects commit 9c100465c28610393ac5d36784f4e365cf7ff2cf. --- src/fields/Matrix.php | 5 +---- src/fields/SuperTable.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/fields/Matrix.php b/src/fields/Matrix.php index 79cfa72f..dd231357 100644 --- a/src/fields/Matrix.php +++ b/src/fields/Matrix.php @@ -272,10 +272,7 @@ private function _parseSubField($feedData, $subFieldHandle, $subFieldInfo): mixe $subField = Hash::extract($this->field->getBlockTypeFields(), '{n}[handle=' . $subFieldHandle . ']')[0]; - if ( - !$subField instanceof $subFieldClassHandle && - $subField instanceof \craft\fields\Matrix - ) { + if (!$subField instanceof $subFieldClassHandle) { $subFieldClassHandle = \craft\fields\Entries::class; } diff --git a/src/fields/SuperTable.php b/src/fields/SuperTable.php index 02a6039d..ad6c18cb 100644 --- a/src/fields/SuperTable.php +++ b/src/fields/SuperTable.php @@ -224,10 +224,7 @@ private function _parseSubField($feedData, $subFieldHandle, $subFieldInfo): mixe $subField = Hash::extract($this->field->getBlockTypeFields(), '{n}[handle=' . $subFieldHandle . ']')[0]; - if ( - !$subField instanceof $subFieldClassHandle && - $subField instanceof \verbb\supertable\fields\SuperTableField - ) { + if (!$subField instanceof $subFieldClassHandle) { $subFieldClassHandle = \craft\fields\Entries::class; }