When we save a search in advanced tab search, only the user who saved can access it later on.
That will be nice to assign this short cut search to all users or to a group of users (with role).
I found in modules/savedsearch/savedsearch.php this fonction :
function getSelect($module) {
global $db, $current_user, $currentModule, $current_lang, $app_strings;
$saved_search_mod_strings = return_module_language($current_lang, 'SavedSearch');
$query = 'SELECT id, name FROM saved_search
WHERE
deleted = \'0\' AND
assigned_user_id = \'' . $current_user->id . '\' AND
search_module = \'' . $module . '\'
.... ...... ....... .......
}
We can see there that will be selected and shown on the select list "saved search" only my saved queries.
How can I safely change this function parameter in the custom directory ?
Sincerely
Franck


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks