Updated Issue with declared progress
This commit is contained in:
parent
378c8c4691
commit
2797c5e65f
@ -285,7 +285,7 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
|
|||||||
foreach ($timespent_duration as $key => $val)
|
foreach ($timespent_duration as $key => $val)
|
||||||
{
|
{
|
||||||
$object->fetch($key);
|
$object->fetch($key);
|
||||||
|
$taskid = $object->id;
|
||||||
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
|
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
|
||||||
else unset($object->progress);
|
else unset($object->progress);
|
||||||
|
|
||||||
|
|||||||
@ -292,6 +292,7 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
|
|||||||
$object->fetch($taskid);
|
$object->fetch($taskid);
|
||||||
|
|
||||||
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
|
if (GETPOSTISSET($taskid.'progress')) $object->progress = GETPOST($taskid.'progress', 'int');
|
||||||
|
else unset($object->progress);
|
||||||
|
|
||||||
$object->timespent_duration = $newduration;
|
$object->timespent_duration = $newduration;
|
||||||
$object->timespent_fk_user = $usertoprocess->id;
|
$object->timespent_fk_user = $usertoprocess->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user