"The selected module has related values" - how to suppress this warning?

The screenshot below shows what happens when we try to save a Contact related to an Account.

Our setup does not use the Primary Address fields so we need to suppress this warning, as users keep reporting it as an error. How can that be done?

Parents
  • Hi Levi,

    When you create a Contact and populate an Account, Sugar will copy the Address and phone from the Account to Contact - This is defined as part of the Account field's "populate_list".

    If you want to disable this, override the field defs by creating a new file in 

    ./custom/Extension/modules/Contacts/Ext/Vardefs/sugarfield_account_name.php

    And make the populate_list as empty:

    $dictionary['Contact']['fields']['account_name']['populate_list'] = [];

Reply
  • Hi Levi,

    When you create a Contact and populate an Account, Sugar will copy the Address and phone from the Account to Contact - This is defined as part of the Account field's "populate_list".

    If you want to disable this, override the field defs by creating a new file in 

    ./custom/Extension/modules/Contacts/Ext/Vardefs/sugarfield_account_name.php

    And make the populate_list as empty:

    $dictionary['Contact']['fields']['account_name']['populate_list'] = [];

Children