Global search dont take in account excluded modules

Hi

We’are using Suite 7.9.7, and we have issue that Global search return results from excluded modules. (excludes from admin UI).

By searchin in code, its seems come from /modules/Home/UnifiedSearchAdvanced.php

in search() method :

For example line 192 :

if (isset($unified_search_modules_display[$key]) && !empty($unified_search_modules_display[$key]['visible']))
                    {
                        $modules_to_search[$key] = $beanList[$key];
                    }

the code must also check if $unified_search_modules_display[$key][‘visible’] == true or false !

Thanks to investigate and fix

Best regards

Check if this works on your version:

https://suitecrm.com/suitecrm/forum/developer-help/24402-this-is-how-can-i-hide-modules