how can i disable the updating of phone_work while selecting a new account in the contacts-DetailView?
i already removed the additinalFields Array in the Contacts editviewdefs.php but the phone_work field still gets updated after selecting a new account.
if i am editing a an existing contact and connect this contact with a new Account some details of the account (address and phone of account) will be updated in the editview fields of the current account.
but i don`t want that also phone number will bei automatically updated.
you can set a displayParams value called copyPhone. set this to false in the account_name field in editviewdefs.php and the phone number will no more be copied.
but then you also have to change the value of the NTC_OVERWRITE_ADDRESS_PHONE_CONFIRM language label.
Before doing this change, were you getting a confirmation dialog box before the value was copied? The one with that NTC_OVERWRITE_ADDRESS_PHONE_CONFIRM message?
And where do you change that displayParams thing? Is there some config file or do you just change it there in the code, near the place where it’s used?
yes i get the confirm dialog with NTC_OVERWRITE_ADDRESS_PHONE_CONFIRM message.
i still get the confirm-dialog after my modifications but i change the message and removed the phone-message part (in include/languages/XX_XX.php (depending on your language)
the displayParams was changed in custom/modules/Contacts/metadata/editviewdefs.php