Skip to content

Commit 7294054

Browse files
author
Oleksii Korshenko
committed
MAGETWO-69543: Fixes regression bug introduced in Magento 2.1.6 where the layered navigation options are sometimes being cached using the wrong store id. #970
1 parent fe6c055 commit 7294054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public function __construct(
6666
\Magento\Eav\Model\Entity\Attribute\Source\BooleanFactory $attrBooleanFactory,
6767
CacheInterface $cache = null,
6868
$storeResolver = null,
69-
array $cacheTags = null,
69+
array $cacheTags = [],
7070
StoreManagerInterface $storeManager = null
7171
) {
7272
$this->_attrBooleanFactory = $attrBooleanFactory;
7373
$this->cache = $cache ?: ObjectManager::getInstance()->get(CacheInterface::class);
74-
$this->cacheTags = $cacheTags ?: self::$defaultCacheTags;
74+
$this->cacheTags = !empty($cacheTags) ? $cacheTags : self::$defaultCacheTags;
7575
$this->storeManager = $storeManager ?: ObjectManager::getInstance()->get(StoreManagerInterface::class);
7676
}
7777

0 commit comments

Comments
 (0)