Skip to content

Commit 6b7a559

Browse files
committed
#37953: Attribute getStoreLabel wrong behavior
- fixed issue with wrong behaviour of the store labels
1 parent bc1c7ba commit 6b7a559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ public function getStoreLabels()
489489
*/
490490
public function getStoreLabel($storeId = null)
491491
{
492-
if ($this->hasData('store_label')) {
492+
if ($this->hasData('store_label') && $storeId === null) {
493493
return $this->getData('store_label');
494494
}
495495
$store = $this->_storeManager->getStore($storeId);

0 commit comments

Comments
 (0)