Skip to content

Commit 3be3fb2

Browse files
committed
Merge remote-tracking branch 'origin/2.4.7-beta1-develop' into ACP2E-2015
2 parents 79ebeb7 + c0d47f1 commit 3be3fb2

File tree

1 file changed

+2
-7
lines changed
  • app/code/Magento/ImportExport/Controller/Adminhtml/Import

1 file changed

+2
-7
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Download.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,13 @@ public function execute()
106106
$fileSize = $this->sampleFileProvider->getSize($entityName);
107107
$fileName = $entityName . '.csv';
108108

109-
$this->fileFactory->create(
109+
return $this->fileFactory->create(
110110
$fileName,
111-
null,
111+
$fileContents,
112112
DirectoryList::VAR_IMPORT_EXPORT,
113113
'application/octet-stream',
114114
$fileSize
115115
);
116-
117-
$resultRaw = $this->resultRawFactory->create();
118-
$resultRaw->setContents($fileContents);
119-
120-
return $resultRaw;
121116
}
122117

123118
/**

0 commit comments

Comments
 (0)