Hi everyone,
I'm currently seeking a way to prevent the contact's phone_office field from being populated with the account's phone_office when establishing a relationship between them.
Here's the code I've implemented:
```php
$dictionary['Contact']['fields']['account_name']['populate_list'] = array(
'billing_address_street' => 'primary_address_street',
'billing_address_city' => 'primary_address_city',
'billing_address_state' => 'primary_address_state',
'billing_address_postalcode' => 'primary_address_postalcode',
'billing_address_country' => 'primary_address_country',
);
```
I added this code to custom/Extension/modules/Contacts/Ext/Vardefs/sugarfield_account_name.php
.
However, upon creating the relationship, I encountered an error, and the contact was marked as deleted=1. I also attempted making the change within modules/Accounts/vardefs.php
, but encountered the same issue. I'm uncertain if there's something additional that needs to be done within the Accounts module.
Any advice or insights would be greatly appreciated. Thank you!