From 59e33b0d83732e77ea3c7b518acba40f14fff382 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 29 Jul 2014 22:14:51 +0530 Subject: [PATCH] CRM-15051, fixed highlighting for fields during contribution import ---------------------------------------- * CRM-15051: Total Amount not shown as required for Import Contributions - update existing contributions https://issues.civicrm.org/jira/browse/CRM-15051 --- CRM/Contribute/Import/Form/MapField.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/Import/Form/MapField.php b/CRM/Contribute/Import/Form/MapField.php index 1de45cea6b..f7664ff875 100644 --- a/CRM/Contribute/Import/Form/MapField.php +++ b/CRM/Contribute/Import/Form/MapField.php @@ -69,8 +69,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField { else { $this->assign('rowDisplayCount', 2); } - $highlightedFields = array(); - $highlightedFields[] = 'financial_type'; + $highlightedFields = array('financial_type', 'total_amount'); //CRM-2219 removing other required fields since for updation only //invoice id or trxn id or contribution id is required. if ($this->_onDuplicate == CRM_Import_Parser::DUPLICATE_UPDATE) { @@ -88,7 +87,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField { } elseif ($this->_onDuplicate == CRM_Import_Parser::DUPLICATE_SKIP) { unset($this->_mapperFields['contribution_id']); - $highlightedFieldsArray = array('contribution_contact_id', 'email', 'first_name', 'last_name', 'external_identifier', 'total_amount'); + $highlightedFieldsArray = array('contribution_contact_id', 'email', 'first_name', 'last_name', 'external_identifier'); foreach ($highlightedFieldsArray as $name) { $highlightedFields[] = $name; } -- 2.25.1