From b5338381986b471f56f97660faed82c867df2de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=97=AD=E4=B8=9C?= Date: Thu, 10 Feb 2022 02:38:49 +0000 Subject: [PATCH] Update kanban.html.php --- module/common/view/kanban.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/view/kanban.html.php b/module/common/view/kanban.html.php index f016430254..e314ecee49 100644 --- a/module/common/view/kanban.html.php +++ b/module/common/view/kanban.html.php @@ -186,7 +186,7 @@ function renderProjectItem(item, $item) { $progress = $('
').appendTo($item); } - var progress = Math.max(0, Math.min(100, Math.round(progress))); + var progress = Math.max(0, Math.min(100, Math.round(item.hours && !Array.isArray(item.hours) ? Math.round(item.hours.progress || 0) : 0))); $progress.find('span').text(progress); $progress.css('background-position-x', -Math.ceil(progress / 2) * 24); $item.addClass('has-progress');