diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 1bdb6711afb..ccfb5087fc5 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -116,7 +116,7 @@ if ($action == 'createtask' && $user->rights->projet->creer) $task->fk_project = $projectid; $task->label = $label; $task->description = $description; - $task->planned_workload = $planned_workload * 3600;//We set the planned workload into minutes + $task->planned_workload = $planned_workload * 3600;//We set the planned workload into seconds $task->fk_task_parent = $task_parent; $task->date_c = dol_now(); $task->date_start = $date_start; diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php index 98a511b2929..c99318e9221 100644 --- a/htdocs/projet/tasks/task.php +++ b/htdocs/projet/tasks/task.php @@ -76,7 +76,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer) $object->label = $_POST["label"]; $object->description = $_POST['description']; $object->fk_task_parent = $task_parent; - $object->planned_workload = $planned_workload*3600; //We set the planned workload into minutes + $object->planned_workload = $planned_workload*3600; //We set the planned workload into seconds $object->date_start = dol_mktime(0,0,0,$_POST['dateomonth'],$_POST['dateoday'],$_POST['dateoyear']); $object->date_end = dol_mktime(0,0,0,$_POST['dateemonth'],$_POST['dateeday'],$_POST['dateeyear']); $object->progress = $_POST['progress'];