Hi all.
First post here, so redirect me if I am in the wrong place.
I am running SuiteCRM 8.2.4.
I want to include the Contact’s primary_address_city field in the global search.
To achieve that, I add this code to a file in .../custom/Extension/modules/Contacts/Ext/Vardefs
<?php
$dictionary['Contact']['fields']['primary_address_city']['unified_search'] = true;
?>
But the field is still ignored.
As far as my investigation goes, the field name in Vardefs is “primary_address_city”, but in SearchFields.php it is defined as
'address_city' => array(
'query_type' => 'default',
'db_field' => array('primary_address_city', 'alt_address_city')
),
Apparently, this causes the field names to not match when buildCache() inside SearchModules.php generates the file unified_search_modules.php, where apparently the global search looks for the fields to include in the search.
What am I missing?
What would be the proper way to get that field included in the global search?
Thanks.