Skip to content

Commit

Permalink
#100 [TimeSpent] add: select dol user issue week view
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jan 13, 2023
1 parent 420587b commit 4587da5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions view/timespent_week.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,12 @@
// If the user can view user other than himself
$moreforfilter .= '<div class="divsearchfield">';
$moreforfilter .= '<div class="inline-block hideonsmartphone"></div>';
$includeonly = 'hierarchyme';

if (empty($user->rights->user->user->lire)) {
$includeonly = array($user->id);
$includeonly = array($user->id);
}
$moreforfilter .= img_picto($langs->trans('Filter').' '.$langs->trans('User'), 'user', 'class="paddingright pictofixedwidth"').$form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');

$moreforfilter .= img_picto($langs->trans('Filter').' '.$langs->trans('User'), 'user', 'class="paddingright pictofixedwidth"').$form->select_dolusers($search_usertoprocessid ?: $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');
$moreforfilter .= '</div>';

if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT)) {
Expand Down

0 comments on commit 4587da5

Please sign in to comment.