Skip to content
Snippets Groups Projects
Commit c5d184af authored by lobo's avatar lobo
Browse files

CRM-8963

----------------------------------------
* CRM-8963: Batch update profile: states do not change with country
  http://issues.civicrm.org/jira/browse/CRM-8963
parent 61e03291
Branches
Tags
No related merge requests found
......@@ -665,8 +665,14 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
static function fixAllStateSelects(&$form, $defaults, $batchFieldNames = false) {
$config = CRM_Core_Config::singleton();
$map = is_array($batchFieldNames) ? $batchFieldNames : $config->stateCountryMap;
$map = null;
if (is_array($batchFieldNames)) {
$map = $batchFieldNames;
}
else if (!empty($config->stateCountryMap)) {
$map = $config->stateCountryMap;
}
if (!empty($map)) {
foreach ($map as $index => $match) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment