Skip to content

Commit 5b90cfd

Browse files
Siarhei AndreyeuSiarhei Andreyeu
authored andcommitted
Merge branch 'master' into MAGNIMEX-13-static-tests
2 parents 059bc0c + 64f8f86 commit 5b90cfd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,9 @@ protected function _getAllBunchImages($bunch)
12331233
foreach ($bunch as $rowData) {
12341234
$rowData = $this->_customFieldsMapping($rowData);
12351235
foreach ($this->_imagesArrayKeys as $image) {
1236+
if (empty($rowData[$image])) {
1237+
continue;
1238+
}
12361239
$dispersionPath =
12371240
\Magento\Framework\File\Uploader::getDispretionPath($rowData[$image]);
12381241
$importImages = explode($this->getMultipleValueSeparator(), $rowData[$image]);

app/code/Magento/ImportExport/Model/Import/AbstractEntity.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ abstract class AbstractEntity
153153
*/
154154
protected $_processedRowsCount = 0;
155155

156+
/**
157+
* Need to log in import history
158+
*
159+
* @var bool
160+
*/
161+
protected $logInHistory = false;
162+
156163
/**
157164
* Rows which will be skipped during import
158165
*
@@ -670,6 +677,16 @@ public function isRowAllowedToImport(array $rowData, $rowNumber)
670677
return $this->validateRow($rowData, $rowNumber) && !isset($this->_skippedRows[$rowNumber]);
671678
}
672679

680+
/*
681+
* Is import need to log in history.
682+
*
683+
* @return bool
684+
*/
685+
public function isNeedToLogInHistory()
686+
{
687+
return $this->logInHistory;
688+
}
689+
673690
/**
674691
* Validate data row
675692
*

0 commit comments

Comments
 (0)