Skip to content

Commit

Permalink
MAGETWO-69543: Fixes regression bug introduced in Magento 2.1.6 where…
Browse files Browse the repository at this point in the history
… the layered navigation options are sometimes being cached using the wrong store id. #970
  • Loading branch information
Oleksii Korshenko committed Jun 6, 2017
1 parent fe6c055 commit 7294054
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ public function __construct(
\Magento\Eav\Model\Entity\Attribute\Source\BooleanFactory $attrBooleanFactory,
CacheInterface $cache = null,
$storeResolver = null,
array $cacheTags = null,
array $cacheTags = [],
StoreManagerInterface $storeManager = null
) {
$this->_attrBooleanFactory = $attrBooleanFactory;
$this->cache = $cache ?: ObjectManager::getInstance()->get(CacheInterface::class);
$this->cacheTags = $cacheTags ?: self::$defaultCacheTags;
$this->cacheTags = !empty($cacheTags) ? $cacheTags : self::$defaultCacheTags;
$this->storeManager = $storeManager ?: ObjectManager::getInstance()->get(StoreManagerInterface::class);
}

Expand Down

0 comments on commit 7294054

Please sign in to comment.