/** * Validate rule data * * @param Varien_Object $object * * @return bool|array - return true if validation passed successfully. Array with errors description otherwise */ public function validateData(Varien_Object $object) { $helper = $this->getStorePricingHelper(); $result = parent::validateData($object); $result = !empty($result) ? $result : array(); if ($this->getVersionHelper()->isGe1700()) { if ($object->hasStoreIds()) { $storeIds = $object->getStoreIds(); if (empty($storeIds)) { $result[] = $helper->__('Stores must be specified.'); } } } return !empty($result) ? $result : true; }