Skip to content

Commit

Permalink
FIX : Select user on add time spent form
Browse files Browse the repository at this point in the history
  • Loading branch information
ATM-Nicolas committed May 14, 2018
1 parent e1585a4 commit ca09fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/projet/tasks/time.php
Expand Up @@ -568,7 +568,8 @@
$contactsoftask=$object->getListContactId('internal');
if (count($contactsoftask)>0)
{
$userid=$contactsoftask[0];
if(in_array($user->id, $contactsoftask)) $userid = $user->id;
else $userid=$contactsoftask[0];
print $form->select_dolusers((GETPOST('userid')?GETPOST('userid'):$userid), 'userid', 0, '', 0, '', $contactsoftask, 0, 0, 0, '', 0, $langs->trans("ResourceNotAssignedToTheTask"), 'maxwidth200');
}
else
Expand Down

0 comments on commit ca09fdd

Please sign in to comment.