forked from Wavyzz/dolibarr
Fix filter on current user is stupi on the view "per user".
This commit is contained in:
@@ -49,10 +49,10 @@ $usergroup = GETPOST("search_usergroup", "int", 3) ?GETPOST("search_usergroup",
|
|||||||
$showbirthday = 0;
|
$showbirthday = 0;
|
||||||
|
|
||||||
// If not choice done on calendar owner, we filter on user.
|
// If not choice done on calendar owner, we filter on user.
|
||||||
if (empty($filtert) && empty($conf->global->AGENDA_ALL_CALENDARS))
|
/*if (empty($filtert) && empty($conf->global->AGENDA_ALL_CALENDARS))
|
||||||
{
|
{
|
||||||
$filtert = $user->id;
|
$filtert = $user->id;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$sortfield = GETPOST("sortfield", 'alpha');
|
$sortfield = GETPOST("sortfield", 'alpha');
|
||||||
$sortorder = GETPOST("sortorder", 'alpha');
|
$sortorder = GETPOST("sortorder", 'alpha');
|
||||||
|
|||||||
@@ -545,7 +545,9 @@ function calendars_prepare_head($param)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/peruser.php'.($param?'?'.$param:'');
|
$newparam = $param;
|
||||||
|
$newparam = preg_replace('/&?search_filtert=\d+/', '', $newparam);
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/comm/action/peruser.php'.($newparam?'?'.$newparam:'');
|
||||||
$head[$h][1] = $langs->trans("ViewPerUser");
|
$head[$h][1] = $langs->trans("ViewPerUser");
|
||||||
$head[$h][2] = 'cardperuser';
|
$head[$h][2] = 'cardperuser';
|
||||||
$h++;
|
$h++;
|
||||||
|
|||||||
Reference in New Issue
Block a user