Skip to content

Commit 0146e85

Browse files
committed
B2B-2463: Improve custom attributes metadata fetching for category models in graphql
1 parent 64263d8 commit 0146e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Category/AttributeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function get($attributeCode)
8080
*/
8181
public function getCustomAttributesMetadata($dataObjectClassName = null)
8282
{
83-
if (empty($this->metadataCache[$dataObjectClassName])) {
83+
if (!isset($this->metadataCache[$dataObjectClassName])) {
8484
$defaultAttributeSetId = $this->eavConfig
8585
->getEntityType(\Magento\Catalog\Api\Data\CategoryAttributeInterface::ENTITY_TYPE_CODE)
8686
->getDefaultAttributeSetId();

0 commit comments

Comments
 (0)