Skip to content

Commit ccbd1b6

Browse files
committed
ACP2E-2689: No Appropriate error message when website id is wrong in the request
- Fixed the static test build failures.
1 parent bba955b commit ccbd1b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ private function checkWebsite(TierPriceInterface $price, $key, Result $validatio
374374
try {
375375
$this->websiteRepository->getById($price->getWebsiteId());
376376
$isWebsiteScope = $this->scopeConfig
377-
->isSetFlag(Data::XML_PATH_PRICE_SCOPE,ScopeInterface::SCOPE_STORE);
377+
->isSetFlag(Data::XML_PATH_PRICE_SCOPE,
378+
ScopeInterface::SCOPE_STORE,
379+
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
380+
);
378381
if (!$isWebsiteScope && (int) $this->allWebsitesValue !== $price->getWebsiteId()) {
379382
throw NoSuchEntityException::singleField('website_id', $price->getWebsiteId());
380383
}

0 commit comments

Comments
 (0)