Skip to content

Commit a5598f7

Browse files
committed
MCLOUD-11623: Added ACSD-55623 patch
1 parent d8e76cc commit a5598f7

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
@@ -370,6 +370,9 @@
370370
"magento/magento2-b2b-base": {
371371
"Layered navigation filter is present only when product is present on the listing page with enabled Shared catalog": {
372372
">=1.1.5 <1.3.1": "MCLOUD-6923__layered_navigation_filter_is_present_only_when_product_is_present_on_the_listing_page_with_enabled_shared_catalog__2.3.5.patch"
373+
},
374+
"Fixes the issue where the file generated after Requisition List export is not removed from the var/ directory": {
375+
">=1.3.1 <1.3.6": "MCLOUD-11623__requisition_list_exports_saved_to_var_directory__2.4.5-p1.patch"
373376
}
374377
},
375378
"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)