New `address_primary` tokens don't work
https://github.com/civicrm/civicrm-core/pull/25032 introduced a new standard, such that a postal code token should be: {contact.address_primary.postal_code}
.
There is also what the tests call the "briefly popular" interim format: {contact.primary_address.postal_code}
.
However, the address_primary
variant only works if either the corresponding primary_address
OR legacy token is also present. The tests pass because the legacy tokens and new tokens are tested together.
E.g. this won't render:
pa postal: {contact.address_primary.postal_code}
But these two will:
old postal: {contact.postal_code}
pa postal: {contact.address_primary.postal_code}
interim postal: {contact.primary_address.postal_code}
pa postal: {contact.address_primary.postal_code}