Updated Issue with declared progress

This commit is contained in:
Matt Sidnell 2020-07-12 21:21:34 +01:00
parent 378c8c4691
commit 2797c5e65f
2 changed files with 2 additions and 1 deletions

View File

@ -285,7 +285,7 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
foreach ($timespent_duration as $key => $val)
{
$object->fetch($key);
$taskid = $object->id;
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
else unset($object->progress);

View File

@ -292,6 +292,7 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
$object->fetch($taskid);
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
else unset($object->progress);
$object->timespent_duration = $newduration;
$object->timespent_fk_user = $usertoprocess->id;