From 8415b36190d19930c108fa6985f56795362cac25 Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 22 Apr 2016 11:54:12 +0530 Subject: [PATCH] CRM-17893: Cannot import custom field type Country ---------------------------------------- * CRM-17893: Cannot import custom field type Country https://issues.civicrm.org/jira/browse/CRM-17893 --- CRM/Core/BAO/CustomValueTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomValueTable.php b/CRM/Core/BAO/CustomValueTable.php index aecb546b1b..e71e106fff 100644 --- a/CRM/Core/BAO/CustomValueTable.php +++ b/CRM/Core/BAO/CustomValueTable.php @@ -142,7 +142,7 @@ class CRM_Core_BAO_CustomValueTable { CRM_Core_PseudoConstant::countryIsoCode(), TRUE ); } - $validCountries[] = CRM_Utils_Array::value('country_id', $states); + $validCountries[] = CRM_Utils_Array::value('country_id', $countries); } $value = implode(CRM_Core_DAO::VALUE_SEPARATOR, $validCountries -- 2.25.1