diff --git a/Model/Config/Backend/MonkeyStore.php b/Model/Config/Backend/MonkeyStore.php index f697cd93..a229c4ea 100644 --- a/Model/Config/Backend/MonkeyStore.php +++ b/Model/Config/Backend/MonkeyStore.php @@ -114,14 +114,17 @@ public function beforeSave() $this->getScopeId(), $this->getScope() ); - $this->_helper->saveJsUrl($this->getScopeId(),$this->getScope(),$this->getValue()); - foreach ($this->_storeManager->getStores() as $storeId => $val) { $mstoreId = $this->_helper->getConfigValue( \Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_STORE, $storeId ); if ($mstoreId == $mailchimpStore) { + $this->_helper->deleteConfig( + \Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_JS_URL, + $storeId, + 'stores' + ); $found++; } $listId = $this->_helper->getConfigValue(\Ebizmarts\MailChimp\Helper\Data::XML_PATH_LIST, $storeId);