Fix selection of user was lost
This commit is contained in:
parent
47ecb91a3e
commit
c97c5e0cfd
@ -375,10 +375,13 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<td class="nowrap">';
|
print '<td class="nowrap">';
|
||||||
print img_object('','user','class="hideonsmartphone"');
|
print img_object('','user','class="hideonsmartphone"');
|
||||||
$contactsoftask=$object->getListContactId('internal');
|
$contactsoftask=$object->getListContactId('internal');
|
||||||
if (count($contactsoftask)>0) {
|
if (count($contactsoftask)>0)
|
||||||
|
{
|
||||||
$userid=$contactsoftask[0];
|
$userid=$contactsoftask[0];
|
||||||
print $form->select_dolusers($userid,'userid',0,'',0,'',$contactsoftask);
|
print $form->select_dolusers((GETPOST('userid')?GETPOST('userid'):$userid),'userid',0,'',0,'',$contactsoftask);
|
||||||
}else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
print img_error($langs->trans('FirstAddRessourceToAllocateTime')).$langs->trans('FirstAddRessourceToAllocateTime');
|
print img_error($langs->trans('FirstAddRessourceToAllocateTime')).$langs->trans('FirstAddRessourceToAllocateTime');
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user