/**
  * Processing object after delete data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterDelete()
 {
     $result = parent::_afterDelete();
     if ($this->getScope() == 'websites') {
         $attribute = Mage::getSingleton('eav/config')->getAttribute('customer_address', 'street');
         $website = Mage::app()->getWebsite($this->getWebsiteCode());
         $attribute->setWebsite($website);
         $attribute->load($attribute->getId());
         $attribute->setData('scope_multiline_count', null);
         $attribute->save();
     }
     return $result;
 }
Exemple #2
0
 /**
  * Processing object after delete data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterDelete()
 {
     $result = parent::_afterDelete();
     if ($this->getScope() == 'websites') {
         $website = Mage::app()->getWebsite($this->getWebsiteCode());
         foreach ($this->_getAttributeObjects() as $attributeObject) {
             $attributeObject->setWebsite($website);
             $attributeObject->load($attributeObject->getId());
             $attributeObject->setData('scope_is_required', null);
             $attributeObject->setData('scope_is_visible', null);
             $attributeObject->save();
         }
     }
     return $result;
 }
 protected function _afterDelete()
 {
     parent::_afterDelete();
     Mage::getSingleton('adminhtml/session')->setData('manufacturer_update_stores', true);
     return $this;
 }