----------------------------------------
* CRM-18472: Notice fixes
https://issues.civicrm.org/jira/browse/CRM-18472
*/
public static function formRule($fields, $files, $self) {
$errors = array();
+ // define so we avoid notices below
+ $errors['_qf_default'] = '';
$fieldMessage = NULL;
if (!array_key_exists('savedMapping', $fields)) {
$importKeys = array();
}
}
+ if (empty($errors['_qf_default'])) {
+ unset($errors['_qf_default']);
+ }
if (!empty($errors)) {
if (!empty($errors['saveMappingName'])) {
$_flag = 1;