Commit b06ca616 authored by eileen's avatar eileen

Add world region to exportable fields

parent 65c86f7d
......@@ -1349,7 +1349,7 @@ SELECT is_primary,
case 'world_region':
case 'worldregion':
case 'worldregion_id':
return CRM_Core_BAO_Country::buildOptions('region_id', $context);
return CRM_Core_BAO_Country::buildOptions('region_id', $context, $props);
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
......
......@@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/Country.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:467cb92fabf3d936d330591eec94504d)
* (GenCodeChecksum:a7e07335fea6b1eea5894c119eaa1c4e)
*/
/**
......@@ -213,7 +213,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO {
'region_id' => [
'name' => 'region_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Region'),
'title' => ts('World Region ID'),
'description' => ts('Foreign key to civicrm_worldregion.id.'),
'required' => TRUE,
'table_name' => 'civicrm_country',
......
......@@ -75,7 +75,7 @@
</field>
<field>
<name>region_id</name>
<title>Region</title>
<title>World Region ID</title>
<type>int unsigned</type>
<required>true</required>
<comment>Foreign key to civicrm_worldregion.id.</comment>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment