MegaphoneJon / com.megaphonetech.entitytemplates

A CiviCRM extension that allows you to create templates for Contacts and Contributions.
Other
0 stars 3 forks source link

Selecting template breaks chain select #7

Open larssandergreen opened 1 year ago

larssandergreen commented 1 year ago

On a contribution, if you select a template (even one with as few details as possible), the chain select to choose State/Province after selecting Country in the billing address breaks. I haven't been able to track down exactly what the problem is, but it works as expected if no template is selected, but with a template selected, it doesn't load the State/Province options, so you can't select one.

The class crm-chain-select-control isn't being added to the country element and crm-chain-select-target to the province element and the default - N/A - option isn't being added to the province, but there's more to it than that.

herbdool commented 1 year ago

This may be related: if a custom field group is restricted to a financial type, then it won't show up even if the Entity Template pre-selects that financial type. If it's a different problem I'll create a new issue here.

MegaphoneJon commented 1 year ago

I barely recall anything about this extension, but my guess is that a) these problems are different, but b) they're both caused in CRM_EntityTemplates_Utils::buildForm().