Fix region token
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Mar 2023 21:56:43 +0000 (10:56 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Mar 2023 21:56:43 +0000 (10:56 +1300)
CRM/Contact/Tokens.php

index a52633a241fd1e45b8c1b68fd49aaf2ed9be8f52..01c1e358a30c5b1774f4227e28b09aa224f462b4 100644 (file)
@@ -654,7 +654,7 @@ class CRM_Contact_Tokens extends CRM_Core_EntityTokens {
       ],
       'address_primary.country_id.region_id:name' => [
         'title' => ts('World Region'),
-        'name' => 'country_id.region_id.name',
+        'name' => 'address_primary.country_id.region_id:name',
         'type' => 'mapped',
         'api_v3' => 'world_region',
         'options' => NULL,