Merge pull request #17805 from frederic34/patch-22

fix warning
This commit is contained in:
Laurent Destailleur 2021-06-04 08:58:53 +02:00 committed by GitHub
commit ce64ebc167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2693,6 +2693,7 @@ function getTaskProgressView($task, $label = true, $progressNumber = true, $hide
// define progress color according to time spend vs workload
$progressBarClass = 'progress-bar-info';
$progressCalculated = 0;
if ($task->planned_workload) {
$progressCalculated = round(100 * floatval($task->duration_effective) / floatval($task->planned_workload), 2);