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

Commit 7114282

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-71549: Impossible to export Advanced Prices on a medium profile
- fix
1 parent 9c0a3ad commit 7114282

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ private function tierPriceTypeValue(array $tierPriceData): string
397397
protected function getTierPrices(array $productLinksIds, $table)
398398
{
399399
$exportFilter = null;
400+
$price = null;
400401
if (isset($this->_parameters[\Magento\ImportExport\Model\Export::FILTER_ELEMENT_GROUP])) {
401402
$exportFilter = $this->_parameters[\Magento\ImportExport\Model\Export::FILTER_ELEMENT_GROUP];
402403
}
@@ -413,8 +414,10 @@ protected function getTierPrices(array $productLinksIds, $table)
413414
'product_link_id' => 'ap.'
414415
.$productEntityLinkField,
415416
];
416-
if (isset($exportFilter) && !empty($exportFilter)) {
417-
$price = $exportFilter['tier_price'];
417+
if ($exportFilter) {
418+
if (array_key_exists('tier_price', $exportFilter)) {
419+
$price = $exportFilter['tier_price'];
420+
}
418421
}
419422
} else {
420423
throw new \InvalidArgumentException('Proper table name needed');

0 commit comments

Comments
 (0)