Skip to content

Commit 4ccf306

Browse files
authored
return old constant name due to Backward Compatibility Policy
1 parent 8d90e19 commit 4ccf306

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricing.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AdvancedPricing extends \Magento\ImportExport\Model\Import\Entity\Abstract
5050

5151
const VALIDATOR_WEBSITE = 'validator_website';
5252

53-
const VALIDATOR_TIER_PRICE = 'validator_tier_price';
53+
const VALIDATOR_TEAR_PRICE = 'validator_tier_price';
5454

5555
/**
5656
* Validation failure message template definitions.
@@ -221,7 +221,7 @@ public function __construct(
221221
$this->_catalogProductEntity = $this->_resourceFactory->create()->getTable('catalog_product_entity');
222222
$this->_oldSkus = $this->retrieveOldSkus();
223223
$this->_validators[self::VALIDATOR_WEBSITE] = $websiteValidator;
224-
$this->_validators[self::VALIDATOR_TIER_PRICE] = $tierPriceValidator;
224+
$this->_validators[self::VALIDATOR_TEAR_PRICE] = $tierPriceValidator;
225225
$this->errorAggregator = $errorAggregator;
226226

227227
foreach (array_merge($this->errorMessageTemplates, $this->_messageTemplates) as $errorCode => $message) {
@@ -536,7 +536,7 @@ protected function getWebSiteId($websiteCode)
536536
*/
537537
protected function getCustomerGroupId($customerGroup)
538538
{
539-
$customerGroups = $this->_getValidator(self::VALIDATOR_TIER_PRICE)->getCustomerGroups();
539+
$customerGroups = $this->_getValidator(self::VALIDATOR_TEAR_PRICE)->getCustomerGroups();
540540
return $customerGroup == self::VALUE_ALL_GROUPS ? 0 : $customerGroups[$customerGroup];
541541
}
542542

0 commit comments

Comments
 (0)