From 35ec7f69f271b557d0ff23be40777d991eb404a1 Mon Sep 17 00:00:00 2001 From: Tony Deplanque Date: Tue, 3 Jan 2017 17:30:46 +0100 Subject: [PATCH] set attribute store id after load attribute --- src/module-elasticsuite-catalog/Helper/Attribute.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/module-elasticsuite-catalog/Helper/Attribute.php b/src/module-elasticsuite-catalog/Helper/Attribute.php index 99323c0fa..ddd65a952 100644 --- a/src/module-elasticsuite-catalog/Helper/Attribute.php +++ b/src/module-elasticsuite-catalog/Helper/Attribute.php @@ -272,9 +272,7 @@ private function getAttributeByStore($attribute, $storeId) * @var EavAttributeInterface */ $storeAttribute = $this->attributeFactory->create(); - $storeAttribute->setStoreId($storeId) - ->load($attributeId); - + $storeAttribute->load($attributeId)->setStoreId($storeId); $this->storeAttributes[$storeId][$attributeId] = $storeAttribute; }