mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Fix selection of user was lost
This commit is contained in:
@@ -375,10 +375,13 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<td class="nowrap">';
|
||||
print img_object('','user','class="hideonsmartphone"');
|
||||
$contactsoftask=$object->getListContactId('internal');
|
||||
if (count($contactsoftask)>0) {
|
||||
if (count($contactsoftask)>0)
|
||||
{
|
||||
$userid=$contactsoftask[0];
|
||||
print $form->select_dolusers($userid,'userid',0,'',0,'',$contactsoftask);
|
||||
}else {
|
||||
print $form->select_dolusers((GETPOST('userid')?GETPOST('userid'):$userid),'userid',0,'',0,'',$contactsoftask);
|
||||
}
|
||||
else
|
||||
{
|
||||
print img_error($langs->trans('FirstAddRessourceToAllocateTime')).$langs->trans('FirstAddRessourceToAllocateTime');
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
Reference in New Issue
Block a user