We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a25d3f commit 8f0bc65Copy full SHA for 8f0bc65
Controller/Adminhtml/Container/Generate.php
@@ -128,7 +128,7 @@ public function execute()
128
'value' => json_encode($container, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT),
129
'rm' => true
130
];
131
- $this->fileFactory->create(
+ return $this->fileFactory->create(
132
sprintf('GTM' . '_%s.json', $this->dateTime->date('Y-m-d_H-i-s')),
133
$fileContent,
134
DirectoryList::MEDIA,
@@ -139,8 +139,5 @@ public function execute()
139
$this->messageManager->addErrorMessage(__('Something went wrong while generating the file.'));
140
return $resultRedirect->setPath($this->redirect->getRefererUrl());
141
}
142
-
143
- $resultRaw = $this->resultRawFactory->create();
144
- return $resultRaw;
145
146
0 commit comments