Hi, this is not sufficient.
The listviewdefs contains a contextmenu which also includes references to the linked account module. This causes the duplicate search results even when the account_name field is removed from the listviewdefs.
To resolve this:
Edit
custom/modules/Contacts/metadata/listviewdefs.php
In case this file doesn’t exist, create it by:
- Open Admin / Studio
- Navigate to Contacts / Layouts / List View
- Move the field “Account Name” in “Default” to either “Available” or "Hidden
- Click “Save & Deploy”
In the following entry
array (
'width' => '20%',
'label' => 'LBL_LIST_NAME',
you will find further below:
'related_fields' =>
array (
0 => 'first_name',
1 => 'last_name',
2 => 'salutation',
3 => 'account_name',
4 => 'account_id',
),
Comment out “account_name” and “account_id”:
'related_fields' =>
array (
0 => 'first_name',
1 => 'last_name',
2 => 'salutation',
// 3 => 'account_name',
// 4 => 'account_id',
),
and save.
Now contacts related to multiple accounts will display only once.