Ejemplo n.º 1
0
 protected function _afterLoad()
 {
     parent::_afterLoad();
     if ($this->getValue() === false) {
         $this->setDefaultMapProductColumns();
     }
 }
Ejemplo n.º 2
0
 /**
  * Process data after load
  */
 protected function _afterLoad()
 {
     $value = $this->getValue();
     if (empty($value)) {
         $this->setValue(array());
     } else {
         try {
             parent::_afterLoad();
         } catch (Exception $e) {
             $this->setValue(array(Mage::helper('core')->uniqHash('_') => array('customer_group_id' => Mage_Customer_Model_Group::CUST_GROUP_ALL, 'min_sale_qty' => $value)));
         }
     }
 }