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

Commit 9c0a3ad

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

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
@@ -304,7 +304,7 @@ private function createExportRow(array $tierPriceData): array
304304
{
305305
$exportRow = $this->templateExportData;
306306
foreach (array_keys($exportRow) as $keyTemplate) {
307-
if (!empty($tierPriceData[$keyTemplate])) {
307+
if (array_key_exists($keyTemplate, $tierPriceData)) {
308308
if (in_array($keyTemplate, $this->_priceWebsite)) {
309309
$exportRow[$keyTemplate] = $this->_getWebsiteCode(
310310
$tierPriceData[$keyTemplate]
@@ -459,7 +459,7 @@ protected function getTierPrices(array $productLinksIds, $table)
459459
* @param int $websiteId
460460
* @return string
461461
*/
462-
protected function _getWebsiteCode($websiteId)
462+
protected function _getWebsiteCode(int $websiteId): string
463463
{
464464
if (!array_key_exists($websiteId, $this->websiteCodesMap)) {
465465
$storeName = ($websiteId == 0)

0 commit comments

Comments
 (0)