Quick Search - Order of appearance for modules

I’m using the quick search module a lot in my installations. That used to have the module “third party” at the top of the list so you’d type the name of the customer and press enter. I recently installed the “Members” module and since then, “Members” is on the top of the quick search list making it the default selection. I need to type the name, NOT press enter and instead click on “Third parties” to make my search. Now, after so many years of using dolibarr like that, it’s frustrating to having to think each time “Oh damn, I shouldn’t have pressed enter. Lets try again”.

Is there no way to change the order of the quick search items?

There is a possibility.

You have to change the source because the order is hardcoded in ~/htdocs/core/ajax/selectsearchbox.php

Look for “searchintomember” and change the position from 8 to 12 (or any number between 11 and 14)

1 Like

Hi @escozul @DG-Rilling

No code change needed just add in Setup->Other Setup
Name:DEFAULT_SEARCH_INTO_MODULE
Value:thirdparty

1 Like

Thanks to the both of you. Both solutions work. I opted for @sonikf 's solution as I only care for the 1st (default) module. @DG-Rilling 's solution might be useful for someone who wants complete control over the order of the search-to modules (i.e. they care which module is 1st, which is 2nd and so on.)