diff --git a/htdocs/core/search.php b/htdocs/core/search.php index ccb8838e42f..05b03064096 100644 --- a/htdocs/core/search.php +++ b/htdocs/core/search.php @@ -126,8 +126,19 @@ if (GETPOST('search_project') != '') } if (GETPOST('search_task') != '') { - header("Location: ".DOL_URL_ROOT.'/projet/tasks/list.php?mode=search&search_all='.urlencode(GETPOST('search_task'))); - exit; + header("Location: ".DOL_URL_ROOT.'/projet/tasks/list.php?mode=search&search_all='.urlencode(GETPOST('search_task'))); + exit; +} + +if (GETPOST('search_user') != '') +{ + header("Location: ".DOL_URL_ROOT.'/user/index.php?mode=search&sall='.urlencode(GETPOST('search_user'))); + exit; +} +if (GETPOST('search_group') != '') +{ + header("Location: ".DOL_URL_ROOT.'/user/group/index.php?mode=search&sall='.urlencode(GETPOST('search_group'))); + exit; } diff --git a/htdocs/user/group/index.php b/htdocs/user/group/index.php index f515c8307e7..af46fd39d21 100644 --- a/htdocs/user/group/index.php +++ b/htdocs/user/group/index.php @@ -49,6 +49,12 @@ $pagenext = $page + 1; if (! $sortfield) $sortfield="g.nom"; if (! $sortorder) $sortorder="ASC"; +// List of fields to search into when doing a "search in all" +$fieldstosearchall = array( + 'g.nom'=>"Group", + 'g.note'=>"Note" +); + /* * View @@ -85,7 +91,19 @@ if ($resql) $param="&search_group=".urlencode($search_group)."&sall=".urlencode($sall); if ($optioncss != '') $param.='&optioncss='.$optioncss; - print '
| '; } +print " |