From: yashodha Date: Fri, 22 Apr 2016 06:24:12 +0000 (+0530) Subject: CRM-17893: Cannot import custom field type Country X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8415b36190d19930c108fa6985f56795362cac25;p=civicrm-core.git CRM-17893: Cannot import custom field type Country ---------------------------------------- * CRM-17893: Cannot import custom field type Country https://issues.civicrm.org/jira/browse/CRM-17893 --- 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