Skip to content

Commit ff428c8

Browse files
committed
B2B-2259: customAttributeMetadata GraphQl query has no cache identity
1 parent cfd2f87 commit ff428c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/EavGraphQl/Plugin/Eav/AttributePlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\EavGraphQl\Plugin\Eav;
99

1010
use Magento\Eav\Model\Entity\Attribute;
11+
use Magento\Framework\Api\AttributeInterface;
1112

1213
/**
1314
* EAV plugin runs page cache clean and provides proper EAV identities.
@@ -31,7 +32,8 @@ public function afterGetIdentities(Attribute $subject, array $result): array
3132
"%s_%s_%s",
3233
Attribute::CACHE_TAG,
3334
$subject->getEntityType()->getEntityTypeCode(),
34-
$subject->getAttributeCode()
35+
$subject->getOrigData(AttributeInterface::ATTRIBUTE_CODE)
36+
?? $subject->getData(AttributeInterface::ATTRIBUTE_CODE)
3537
)
3638
]
3739
);

0 commit comments

Comments
 (0)