Fix time assigned to wrong user
This commit is contained in:
parent
924cf871a7
commit
4b90510b82
@ -237,7 +237,7 @@ if ($action == 'addtime' && $user->rights->projet->lire)
|
|||||||
$object->fetch($key);
|
$object->fetch($key);
|
||||||
$object->progress = GETPOST($key.'progress', 'int');
|
$object->progress = GETPOST($key.'progress', 'int');
|
||||||
$object->timespent_duration = $val;
|
$object->timespent_duration = $val;
|
||||||
$object->timespent_fk_user = $user->id;
|
$object->timespent_fk_user = $usertoprocess->id;
|
||||||
$object->timespent_note = GETPOST($key.'note');
|
$object->timespent_note = GETPOST($key.'note');
|
||||||
if (GETPOST($key."hour") != '' && GETPOST($key."hour") >= 0) // If hour was entered
|
if (GETPOST($key."hour") != '' && GETPOST($key."hour") >= 0) // If hour was entered
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user