Skip to content

Commit

Permalink
ENGCOM-1516: fix: do not set forced area in template, fixes #14968 #1…
Browse files Browse the repository at this point in the history
Stanislav Idolov authored May 16, 2018
2 parents db70a09 + 720c650 commit 7019a0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/code/Magento/Email/Model/AbstractTemplate.php
Original file line number Diff line number Diff line change
@@ -534,10 +534,9 @@ protected function cancelDesignConfig()
*/
public function setForcedArea($templateId)
{
if ($this->area) {
throw new \LogicException(__('Area is already set'));
if (!isset($this->area)) {
$this->area = $this->emailConfig->getTemplateArea($templateId);
}
$this->area = $this->emailConfig->getTemplateArea($templateId);
return $this;
}

0 comments on commit 7019a0a

Please sign in to comment.