Fix for unresolved state_province
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Mar 2023 21:47:26 +0000 (10:47 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 1 Mar 2023 21:47:26 +0000 (10:47 +1300)
CRM/Contact/Tokens.php

index bed30b86f737bc14d81e64789940ba5fea4b14a5..a52633a241fd1e45b8c1b68fd49aaf2ed9be8f52 100644 (file)
@@ -415,7 +415,7 @@ class CRM_Contact_Tokens extends CRM_Core_EntityTokens {
     // Manually add in the abbreviated state province as that maps to
     // what has traditionally been delivered.
     $tokensMetadata['address_primary.state_province_id:abbr'] = $tokensMetadata['address_primary.state_province_id:label'];
-    $tokensMetadata['address_primary.state_province_id:abbr']['name'] = 'state_province_id:abbr';
+    $tokensMetadata['address_primary.state_province_id:abbr']['name'] = 'address_primary.state_province_id:abbr';
     $tokensMetadata['address_primary.state_province_id:abbr']['audience'] = 'user';
     // Hide the label for now because we are not sure if there are paths
     // where legacy token resolution is in play where this could not be resolved.