Skip to content

Commit bf68279

Browse files
author
Korshenko, Oleksii(okorshenko)
committed
Merge pull request #431 from magento-tango/MAGETWO-48223
[Tango] Price permissions fixes
2 parents f227f6a + 2381d60 commit bf68279

File tree

7 files changed

+510
-245
lines changed

7 files changed

+510
-245
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/AbstractModifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function setUp()
7777
->willReturnArgument(1);
7878
$this->arrayManagerMock->expects($this->any())
7979
->method('get')
80-
->willReturnArgument(3);
80+
->willReturnArgument(2);
8181
$this->arrayManagerMock->expects($this->any())
8282
->method('set')
8383
->willReturnArgument(1);

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ public function modifyMeta(array $meta)
122122
{
123123
$this->meta = $meta;
124124

125-
$this->preparePriceFields(ProductAttributeInterface::CODE_PRICE);
126-
$this->preparePriceFields(ProductAttributeInterface::CODE_SPECIAL_PRICE);
127-
$this->preparePriceFields(ProductAttributeInterface::CODE_COST);
128125
$this->specialPriceDataToInline();
129126
$this->customizeTierPrice();
130127

@@ -182,7 +179,7 @@ protected function customizeTierPrice()
182179
$tierPricePath = $this->getElementArrayPath($this->meta, ProductAttributeInterface::CODE_TIER_PRICE);
183180

184181
if ($tierPricePath) {
185-
$this->meta = $this->arrayManager->set(
182+
$this->meta = $this->arrayManager->merge(
186183
$tierPricePath,
187184
$this->meta,
188185
$this->getTierPriceStructure($tierPricePath)

0 commit comments

Comments
 (0)