From: Nileema Date: Fri, 17 Jan 2014 07:13:13 +0000 (+0530) Subject: --HR-235 Modification for formrule warning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=abc4092091fde138e4bbecebbec96ec6732bad0b;p=civicrm-core.git --HR-235 Modification for formrule warning --- diff --git a/CRM/Custom/Import/Form/MapField.php b/CRM/Custom/Import/Form/MapField.php index de34d89e43..86c8c9dab1 100644 --- a/CRM/Custom/Import/Form/MapField.php +++ b/CRM/Custom/Import/Form/MapField.php @@ -59,7 +59,7 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField { * @static * @access public */ - static function formRule($fields, $files, $self) { + static function formRule($fields) { $errors = array(); $fieldMessage = NULL; if (!array_key_exists('savedMapping', $fields)) { @@ -86,7 +86,7 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField { $errors['saveMappingName'] = ts('Name is required to save Import Mapping'); } else { - $mappingTypeId = CRM_Core_OptionGroup::getValue('mapping_type', $self->_mappingType, 'name'); + $mappingTypeId = CRM_Core_OptionGroup::getValue('mapping_type', 'Import Multi value custom data', 'name'); if (CRM_Core_BAO_Mapping::checkMapping($nameField, $mappingTypeId)) { $errors['saveMappingName'] = ts('Duplicate ' . $self->_mappingType . 'Mapping Name'); }