/** * Load array * * @param array $arr Attribute Array * @return Flagbit_MEP_Model_Rule_Condition_Product Self. */ public function loadArray($arr) { $this->setAttribute(isset($arr['attribute']) ? $arr['attribute'] : false); $attribute = $this->getAttributeObject(); if ($attribute && $attribute->getBackendType() == 'decimal') { if (isset($arr['value'])) { $arr['value'] = Mage::app()->getLocale()->getNumber($arr['value']); } else { $arr['value'] = false; } if (isset($arr['is_value_parsed'])) { $arr['is_value_parsed'] = Mage::app()->getLocale()->getNumber($arr['is_value_parsed']); } else { $arr['is_value_parsed'] = false; } } return parent::loadArray($arr); }