Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit dd7ad34

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-71549: Impossible to export Advanced Prices on a medium profile
- code style and code mess
1 parent ee33abb commit dd7ad34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ function (array $productData) {
303303
private function createExportRow(array $tierPriceData): array
304304
{
305305
$exportRow = $this->templateExportData;
306-
foreach ($exportRow as $keyTemplate => $valueTemplate) {
307-
if (isset($row[$keyTemplate])) {
306+
foreach (array_keys($exportRow) as $keyTemplate) {
307+
if (!empty($tierPriceData[$keyTemplate])) {
308308
if (in_array($keyTemplate, $this->_priceWebsite)) {
309309
$exportRow[$keyTemplate] = $this->_getWebsiteCode(
310310
$tierPriceData[$keyTemplate]

0 commit comments

Comments
 (0)