diff --git a/Plugins/EmulatedAdminEmailUrls.php b/Plugins/EmulatedAdminEmailUrls.php index 373a45e..b886556 100644 --- a/Plugins/EmulatedAdminEmailUrls.php +++ b/Plugins/EmulatedAdminEmailUrls.php @@ -37,6 +37,9 @@ public function beforeGetTransport() { if ($this->_configuration->isActive()) { $this->originalScope = $this->_urlModel->getScope(); + if ($this->originalScope === null) { + $this->originalScope = $this->_store->getStore('admin'); + } $this->_urlModel->setScope($this->_store->getStore()); }