protected function _childValidation() { if (!Tools::getValue('id_image_type') and Validate::isImageTypeName($typeName = Tools::getValue('name')) and ImageType::typeAlreadyExists($typeName)) { $this->_errors[] = Tools::displayError('this name already exists'); } }
protected function _childValidation() { if (!Tools::getValue('id_image_type') && Validate::isImageTypeName($typeName = Tools::getValue('name')) && ImageType::typeAlreadyExists($typeName)) { $this->errors[] = $this->trans('This name already exists.', array(), 'Admin.Design.Notification'); } }