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');