Skip to content

Commit a48c57b

Browse files
committed
ACPT-1429: PR stabilization
1 parent 5106ec1 commit a48c57b

File tree

2 files changed

+11
-4
lines changed
  • app/code/Magento
    • CatalogImportExport/Model/Import/Product
    • ImportExport/Model/Import/Source

2 files changed

+11
-4
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,16 +1156,23 @@ protected function _isReadyForSaving(array &$options, array &$titles, array $typ
11561156
*/
11571157
protected function _getMultiRowFormat($rowData)
11581158
{
1159+
if (!isset($rowData['custom_options'])) {
1160+
return [];
1161+
}
1162+
11591163
if (is_array($rowData['custom_options'])) {
11601164
$rowData = $this->parseStructuredCustomOptions($rowData);
1161-
} else {
1165+
} elseif (is_string($rowData['custom_options'])) {
11621166
$rowData = $this->_parseCustomOptions($rowData);
1167+
} else {
1168+
return [];
11631169
}
1164-
$multiRow = [];
1170+
11651171
if (empty($rowData['custom_options']) || !is_array($rowData['custom_options'])) {
1166-
return $multiRow;
1172+
return [];
11671173
}
11681174

1175+
$multiRow = [];
11691176
$i = 0;
11701177
foreach ($rowData['custom_options'] as $name => $customOption) {
11711178
$i++;

app/code/Magento/ImportExport/Model/Import/Source/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Json extends \Magento\ImportExport\Model\Import\AbstractSource
1717
/**
1818
* @var FileReadInterface
1919
*/
20-
protected FileReadInterface $_file;
20+
private FileReadInterface $_file;
2121

2222
/**
2323
* @var array

0 commit comments

Comments
 (0)