From 341e8763bec3d3eb1fcb34e664698036633a72f9 Mon Sep 17 00:00:00 2001 From: Franky Van Liedekerke Date: Thu, 6 Oct 2016 17:07:09 +0200 Subject: [PATCH] small code optimization --- CRM/Custom/Import/Form/MapField.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Custom/Import/Form/MapField.php b/CRM/Custom/Import/Form/MapField.php index cf8614a787..f404fbef14 100644 --- a/CRM/Custom/Import/Form/MapField.php +++ b/CRM/Custom/Import/Form/MapField.php @@ -23,9 +23,7 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField { $this->_columnCount = $this->get('columnCount'); $this->assign('columnCount', $this->_columnCount); $this->_dataValues = $this->get('dataValues'); - $highlightedFields = array(); - $highlightedFields[] = 'contact_id'; - $highlightedFields[] = 'external_identifier'; + $highlightedFields = array('contact_id', 'external_identifier'); //Separate column names from actual values. $columnNames = $this->_dataValues[0]; @@ -80,7 +78,7 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField { if (!isset($errors['_qf_default'])) { $errors['_qf_default'] = ''; } - $errors['_qf_default'] .= ts('Missing required field: %1', array(1 => ts('Contact ID'))); + $errors['_qf_default'] .= ts('Missing required field: %1', array(1 => ts('Contact ID or External Identifier'))); } } -- 2.25.1