Skip to content

Commit

Permalink
https://github.com/thehcginstitute-com/m1/issues/580
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 31, 2024
1 parent dc66d13 commit 4dccd96
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/code/community/Ebizmarts/MailChimp/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ protected function getCustomerModel()

/**
* Handle save of System -> Configuration, section <mailchimp>
*
* @param Varien_Event_Observer $observer
* @return Varien_Event_Observer
* @throws Mage_Core_Exception
*/
function saveConfigBefore(Varien_Event_Observer $observer)
function saveConfigBefore(Ob $ob)
{
$config = $observer->getObject();
$config = $ob->getObject();

if ($config->getSection() == "mailchimp") {
$configData = $config->getData();
Expand Down Expand Up @@ -148,7 +146,7 @@ function saveConfigBefore(Varien_Event_Observer $observer)
}
}

return $observer;
return $ob;
}

/**
Expand Down

0 comments on commit 4dccd96

Please sign in to comment.