From b41456cea1b2b84f90f8a53e36de570167623986 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 27 Sep 2016 18:08:13 -0400 Subject: [PATCH] CRM-19065 - Fix custom data import validation --- CRM/Custom/Import/Parser/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Custom/Import/Parser/Api.php b/CRM/Custom/Import/Parser/Api.php index 3a2b7777a3..901755f3a0 100644 --- a/CRM/Custom/Import/Parser/Api.php +++ b/CRM/Custom/Import/Parser/Api.php @@ -120,7 +120,7 @@ class CRM_Custom_Import_Parser_Api extends CRM_Custom_Import_Parser { $errorMessage = NULL; $contactType = $this->_contactType ? $this->_contactType : 'Organization'; - CRM_Contact_Import_Parser_Contact::isErrorInCustomData($this->_params, $errorMessage, $contactType, NULL); + CRM_Contact_Import_Parser_Contact::isErrorInCustomData($this->_params + array('contact_type' => $contactType), $errorMessage, $this->_contactSubType, NULL); // pseudoconstants if ($errorMessage) { -- 2.25.1