Skip to content

Commit 9e2696a

Browse files
Merge pull request #92 from magento-commerce/MCLOUD-11623
MCLOUD-11623: Added ACSD-55623 patch
2 parents fb7022e + da00f04 commit 9e2696a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

patches.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@
385385
},
386386
"Fields hydration on company account create request": {
387387
">=1.3.3 <1.3.3-p11 || >=1.3.4 <1.3.4-p10 || >=1.3.5 <1.3.5-p8 || >=1.4.2 <1.4.2-p3": "B2B-4051__fields_hydration_company_account_create_request__1.3.3.patch"
388+
},
389+
"Fixes the issue where the file generated after Requisition List export is not removed from the var/ directory": {
390+
">=1.3.1 <1.3.6": "MCLOUD-11623__requisition_list_exports_saved_to_var_directory__2.4.5-p1.patch"
388391
}
389392
},
390393
"magento/magento2-ee-base": {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/vendor/magento/module-requisition-list/Controller/Requisition/Export.php b/vendor/magento/module-requisition-list/Controller/Requisition/Export.php
2+
index e8332a7f1091..7eee2f51b7f4 100644
3+
--- a/vendor/magento/module-requisition-list/Controller/Requisition/Export.php
4+
+++ b/vendor/magento/module-requisition-list/Controller/Requisition/Export.php
5+
@@ -101,9 +101,15 @@ public function execute()
6+
7+
$fileName = "{$requisitionList->getName()}.{$writer->getFileExtension()}";
8+
9+
+ $content = [
10+
+ 'type' => "string",
11+
+ 'value' => $this->requisitionListExport->export(),
12+
+ 'rm' => true,
13+
+ ];
14+
+
15+
return $this->fileFactory->create(
16+
$fileName,
17+
- $this->requisitionListExport->export(),
18+
+ $content,
19+
DirectoryList::VAR_DIR,
20+
$writer->getContentType()
21+
);
22+

0 commit comments

Comments
 (0)