Hi does anyone know how to change the unified search file (modules/home/unifiedsearch.php) which appears on all pages as the general search field.
I need this to automatically add the % search variable
cheers in advance
Hi does anyone know how to change the unified search file (modules/home/unifiedsearch.php) which appears on all pages as the general search field.
I need this to automatically add the % search variable
cheers in advance
Haven't you seen how the search is being arranged now? There are calls to modules' functions.
Farkhad Rakhimzhanov
E-mail: farkhad@gmail.com
Skype: rakikama
SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
Book time against Cases, Project Tasks and Projects.
Create invoice regarding booked time, print it in PDF or HTML,
customize template as you like.
Hi,
Yeah I've been into the modules and added the % but that doesnt seem to work. Any other ideas?
Can you list here the result queries? (i mean queries itself, not the result of the query)
Farkhad Rakhimzhanov
E-mail: farkhad@gmail.com
Skype: rakikama
SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
Book time against Cases, Project Tasks and Projects.
Create invoice regarding booked time, print it in PDF or HTML,
customize template as you like.
this is a line from the accounts ListView module
so to search for the accounts name, if i were to search for amazing it would return two different companies i.e. 'amazing company' and 'the amazing future'PHP Code:if(isset($name) && $name != "") array_push($where_clauses, "accounts.name like '%".PearDatabase::quote($name)."%'");
at present it wont return 'the amazing future' only 'amazing company'
Can you provide here such a string (query):
SELECT ....;
Farkhad Rakhimzhanov
E-mail: farkhad@gmail.com
Skype: rakikama
SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
Book time against Cases, Project Tasks and Projects.
Create invoice regarding booked time, print it in PDF or HTML,
customize template as you like.
not sure if this is the answer you're looking for, but in UnifiedSearchAdvanced.php, look for
$clause .= "LIKE '{$_REQUEST['query_string']}%'";
add % before {$_REQUEST
how about searching more than 1 string like any search engine. For instance strings such as
technology solution
provides all records that has both strings appearing in the record...
I would also like to see what sugarcare mentioned in the post above. A simple example is - I have a lead called "Chris Middleton"
Searching for "Chris Middleton" brings up nothing - because first_name=Chris and last_name=Middleton. Need to search both fields at once really!
Tom
Hi
I didn't test it yet but maybe the change provided by ivangool in this post helps.
Cheers Pascal
Simplicity GmbH
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks