diff --git a/module/execution/model.php b/module/execution/model.php index 9a090b9465..586732f803 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4385,8 +4385,16 @@ class executionModel extends model echo '' . zget($users, $execution->PM) . ''; echo "" . zget($this->lang->project->statusList, $execution->status) . ''; echo '' . html::ring($execution->hours->progress) . ''; - echo '' . $execution->begin . ''; - echo '' . $execution->end . ''; + echo helper::isZeroDate($execution->begin) ? '' : '' . $execution->begin . ''; + if(!helper::isZeroDate($execution->end)) + { + $today = helper::today(); + echo strtotime($today) > strtotime($execution->end) ? '' . $execution->end . '' : '' . $execution->end . ''; + } + else + { + echo ''; + } echo "" . $execution->hours->totalEstimate . $this->lang->execution->workHourUnit . ''; echo "" . $execution->hours->totalConsumed . $this->lang->execution->workHourUnit . ''; echo "" . $execution->hours->totalLeft . $this->lang->execution->workHourUnit . ''; diff --git a/module/project/css/common.css b/module/project/css/common.css index c7dfdc44b7..8b503b764e 100644 --- a/module/project/css/common.css +++ b/module/project/css/common.css @@ -1,3 +1,4 @@ .future {display: inline-block;} .c-number {overflow: hidden; text-align: right !important; text-overflow: ellipsis; white-space: nowrap;} .text-remind {color: #ffa34d;} +td.delayed {color: #fff; background: #e84e0f !important;} diff --git a/module/task/model.php b/module/task/model.php index 19e8927876..450d536602 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -3806,8 +3806,16 @@ class taskModel extends model $list .= '' . zget($users, $task->assignedTo, '') . ''; $list .= "" . $this->processStatus('task', $task) . ''; $list .= ''; - $list .= '' . $task->estStarted . ''; - $list .= '' . $task->deadline . ''; + $list .= helper::isZeroDate($task->estStarted) ? '' : '' . $task->estStarted . ''; + if(!helper::isZeroDate($task->deadline)) + { + $today = helper::today(); + $list .= strtotime($today) > strtotime($task->deadline) ? '' . $task->deadline . '' : '' . $task->deadline . ''; + } + else + { + $list .= ''; + } $list .= '' . $task->estimate . $this->lang->execution->workHourUnit . ''; $list .= '' . $task->consumed . $this->lang->execution->workHourUnit . ''; $list .= '' . $task->left . $this->lang->execution->workHourUnit . '';