From: eileenmcnaugton Date: Mon, 2 Nov 2015 18:25:33 +0000 (+1300) Subject: CRM-17490 fix interface error on activity import X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1ae8fc427ef9c4e9922266fce55abd181cd60734;p=civicrm-core.git CRM-17490 fix interface error on activity import --- diff --git a/CRM/Activity/Import/Parser/Activity.php b/CRM/Activity/Import/Parser/Activity.php index 7bec9bf465..afeec3f463 100644 --- a/CRM/Activity/Import/Parser/Activity.php +++ b/CRM/Activity/Import/Parser/Activity.php @@ -55,14 +55,19 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Activity_Import_Parser { * Class constructor. * * @param array $mapperKeys - * @param null $mapperLocType - * @param null $mapperPhoneType + * @param int $mapperLocType + * @param int $mapperPhoneType */ public function __construct(&$mapperKeys, $mapperLocType = NULL, $mapperPhoneType = NULL) { parent::__construct(); $this->_mapperKeys = &$mapperKeys; } + /** + * Function of undocumented functionality required by the interface. + */ + protected function fini() {} + /** * The initializer code, called before the processing. */ @@ -161,9 +166,8 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Activity_Import_Parser { */ public function summary(&$values) { $erroneousField = NULL; - $response = $this->setActiveFieldValues($values, $erroneousField); + $this->setActiveFieldValues($values, $erroneousField); $index = -1; - $errorRequired = FALSE; if ($this->_activityTypeIndex > -1 && $this->_activityLabelIndex > -1) { array_unshift($values, ts('Please select either Activity Type ID OR Activity Type Label.')); @@ -262,7 +266,7 @@ class CRM_Activity_Import_Parser_Activity extends CRM_Activity_Import_Parser { if (!isset($params['source_contact_id'])) { $params['source_contact_id'] = $session->get('userID'); } - $formatted = array(); + $customFields = CRM_Core_BAO_CustomField::getFields(CRM_Utils_Array::value('contact_type', $params)); foreach ($params as $key => $val) {