Skip to content

Commit 9dc4453

Browse files
author
Sergey Shvets
committed
Merge remote-tracking branch 'origin/MAGETWO-58917' into pr-2.0
2 parents abe0a39 + a197f23 commit 9dc4453

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,12 +2078,9 @@ public function addTierPriceData()
20782078

20792079
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
20802080
$attribute = $this->getAttribute('tier_price');
2081-
if ($attribute->isScopeGlobal()) {
2082-
$websiteId = 0;
2083-
} else {
2084-
if ($this->getStoreId()) {
2085-
$websiteId = $this->_storeManager->getStore($this->getStoreId())->getWebsiteId();
2086-
}
2081+
$websiteId = 0;
2082+
if ($attribute->isScopeWebsite() && $this->getStoreId() != 0) {
2083+
$websiteId = $this->_storeManager->getStore($this->getStoreId())->getWebsiteId();
20872084
}
20882085

20892086
$connection = $this->getConnection();

0 commit comments

Comments
 (0)