Skip to content

Commit 6d4cad5

Browse files
tjwiebellanthoula
authored andcommitted
MAGETWO-92218: ExtensionAttributes Installation Failure
- Fallback to always to factory so we don't have signature mismatches
1 parent 210939a commit 6d4cad5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/PageBuilder/Plugin/Catalog/Model/Product/Attribute/RepositoryPlugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public function afterGet(
5555
\Magento\Catalog\Api\Data\ProductAttributeInterface $result
5656
) {
5757
$isPageBuilderEnabled = $result->getData('is_pagebuilder_enabled');
58-
$extensionAttribute = $result->getExtensionAttributes()
59-
? $result->getExtensionAttributes()
60-
: $this->extensionAttributesFactory->create();
58+
$extensionAttribute = $this->extensionAttributesFactory->create();
6159
$extensionAttribute->setIsPagebuilderEnabled($isPageBuilderEnabled);
6260
$result->setExtensionAttributes($extensionAttribute);
6361
return $result;

0 commit comments

Comments
 (0)