Skip to content

Commit 4c55787

Browse files
committed
MC-18116: [Backport for 2.2.x] Email template preview bugfix
1 parent d73a46e commit 4c55787

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Email/Controller/Adminhtml/Email/Template

1 file changed

+2
-2
lines changed

app/code/Magento/Email/Controller/Adminhtml/Email/Template/Popup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public function __construct(
4242
* Load the page defined in view/adminhtml/layout/adminhtml_email_template_popup.xml
4343
*
4444
* @return \Magento\Framework\View\Result\Page
45-
* @throws \Magento\Framework\Exception\NotFoundException
4645
*/
4746
public function execute()
4847
{
4948
if (!$this->getRequest()->isPost()) {
50-
throw new \Magento\Framework\Exception\NotFoundException(__('Page not found.'));
49+
$this->_forward('noroute');
50+
return;
5151
}
5252

5353
return $this->resultPageFactory->create();

0 commit comments

Comments
 (0)