From e1a33ae47045351731775bb46faa01bf2cdcecad Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 27 Apr 2016 13:25:48 +0530 Subject: [PATCH] CRM-18472 : Notice fixes ---------------------------------------- * CRM-18472: Notice fixes https://issues.civicrm.org/jira/browse/CRM-18472 --- CRM/Event/Import/Form/MapField.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Event/Import/Form/MapField.php b/CRM/Event/Import/Form/MapField.php index 9b8257f667..a94c0be47c 100644 --- a/CRM/Event/Import/Form/MapField.php +++ b/CRM/Event/Import/Form/MapField.php @@ -295,6 +295,8 @@ class CRM_Event_Import_Form_MapField extends CRM_Import_Form_MapField { */ 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(); @@ -375,6 +377,9 @@ class CRM_Event_Import_Form_MapField extends CRM_Import_Form_MapField { } } + if (empty($errors['_qf_default'])) { + unset($errors['_qf_default']); + } if (!empty($errors)) { if (!empty($errors['saveMappingName'])) { $_flag = 1; -- 2.25.1