Skip to content

Commit 42ca9eb

Browse files
committed
ACP2E-2689: No Appropriate error message when website id is wrong in the request
- Fixed the issue.
1 parent 7e459d4 commit 42ca9eb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/code/Magento/Catalog/Model/Product/Price/Validation/TierPriceValidator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,6 @@ private function checkWebsite(TierPriceInterface $price, $key, Result $validatio
378378
ScopeInterface::SCOPE_STORE
379379
);
380380
if ($isGlobalConfig === Data::PRICE_SCOPE_GLOBAL &&
381-
isset($this->productsCacheBySku[$price->getSku()]) &&
382-
is_array($this->productsCacheBySku[$price->getSku()]->getTierPrices()) &&
383-
count($this->productsCacheBySku[$price->getSku()]->getTierPrices()) > 0 &&
384381
(int) $this->allWebsitesValue !== $price->getWebsiteId()
385382
) {
386383
throw NoSuchEntityException::singleField('website_id', $price->getWebsiteId());

0 commit comments

Comments
 (0)