Skip to content

Commit 5b001bd

Browse files
committed
Fix typos mistake of mediaGallery in Product.php file
1 parent 1819863 commit 5b001bd

File tree

1 file changed

+6
-6
lines changed
  • app/code/Magento/CatalogImportExport/Model/Export

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ protected function collectMultirawData()
11821182

11831183
$data['rowWebsites'] = $rowWebsites;
11841184
$data['rowCategories'] = $rowCategories;
1185-
$data['mediaGalery'] = $this->getMediaGallery($productLinkIds);
1185+
$data['mediaGallery'] = $this->getMediaGallery($productLinkIds);
11861186
$data['linksRows'] = $this->prepareLinks($productLinkIds);
11871187

11881188
$data['customOptionsData'] = $this->getCustomOptionsData($productLinkIds);
@@ -1294,11 +1294,11 @@ private function appendMultirowData(&$dataRow, $multiRawData)
12941294
implode(Import::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR, $websiteCodes);
12951295
$multiRawData['rowWebsites'][$productId] = [];
12961296
}
1297-
if (!empty($multiRawData['mediaGalery'][$productLinkId])) {
1297+
if (!empty($multiRawData['mediaGallery'][$productLinkId])) {
12981298
$additionalImages = [];
12991299
$additionalImageLabels = [];
13001300
$additionalImageIsDisabled = [];
1301-
foreach ($multiRawData['mediaGalery'][$productLinkId] as $mediaItem) {
1301+
foreach ($multiRawData['mediaGallery'][$productLinkId] as $mediaItem) {
13021302
if ((int)$mediaItem['_media_store_id'] === Store::DEFAULT_STORE_ID) {
13031303
$additionalImages[] = $mediaItem['_media_image'];
13041304
$additionalImageLabels[] = $mediaItem['_media_label'];
@@ -1314,7 +1314,7 @@ private function appendMultirowData(&$dataRow, $multiRawData)
13141314
implode(Import::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR, $additionalImageLabels);
13151315
$dataRow['hide_from_product_page'] =
13161316
implode(Import::DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR, $additionalImageIsDisabled);
1317-
$multiRawData['mediaGalery'][$productLinkId] = [];
1317+
$multiRawData['mediaGallery'][$productLinkId] = [];
13181318
}
13191319
foreach ($this->_linkTypeProvider->getLinkTypes() as $linkTypeName => $linkId) {
13201320
if (!empty($multiRawData['linksRows'][$productLinkId][$linkId])) {
@@ -1341,8 +1341,8 @@ private function appendMultirowData(&$dataRow, $multiRawData)
13411341
$dataRow = $this->rowCustomizer->addData($dataRow, $productId);
13421342
} else {
13431343
$additionalImageIsDisabled = [];
1344-
if (!empty($multiRawData['mediaGalery'][$productLinkId])) {
1345-
foreach ($multiRawData['mediaGalery'][$productLinkId] as $mediaItem) {
1344+
if (!empty($multiRawData['mediaGallery'][$productLinkId])) {
1345+
foreach ($multiRawData['mediaGallery'][$productLinkId] as $mediaItem) {
13461346
if ((int)$mediaItem['_media_store_id'] === $storeId) {
13471347
if ($mediaItem['_media_is_disabled'] == true) {
13481348
$additionalImageIsDisabled[] = $mediaItem['_media_image'];

0 commit comments

Comments
 (0)