Fix: Do not overwrite global $user information
This commit is contained in:
parent
34673e220d
commit
db4240afad
@ -170,6 +170,7 @@ if (! empty($project_ref) && ! empty($withproject))
|
||||
llxHeader("",$langs->trans("Task"));
|
||||
|
||||
$form = new Form($db);
|
||||
$userstatic = new User($db);
|
||||
|
||||
if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
@ -403,14 +404,14 @@ if ($id > 0 || ! empty($ref))
|
||||
print '</td>';
|
||||
|
||||
// User
|
||||
$userstatic = new User($task_time->fk_user);
|
||||
print '<td>';
|
||||
if ($_GET['action'] == 'editline' && $_GET['lineid'] == $task_time->rowid)
|
||||
{
|
||||
print $form->select_users($userstatic->id,'userid_line');
|
||||
print $form->select_users($task_time->fk_user,'userid_line');
|
||||
}
|
||||
else
|
||||
{
|
||||
$userstatic->id = $task_time->fk_user;
|
||||
$userstatic->nom = $task_time->name;
|
||||
$userstatic->prenom = $task_time->firstname;
|
||||
print $userstatic->getNomUrl(1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user