From b9ee65ddfd104e18161cc4ee363893ca8e797431 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 5 Jul 2022 06:54:04 +0000 Subject: [PATCH] * Fix bug #24751. --- module/bug/view/edit.html.php | 2 +- module/execution/css/task.css | 1 + module/task/model.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index e339aa34d1..6cec5cb94c 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -160,7 +160,7 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project); bug->deadline;?> - deadline) ? '' : substr($bug->deadline, 5, 11), "class='form-control form-date'");?> + deadline) ? '' : $bug->deadline, "class='form-control form-date'");?> bug->feedbackBy;?> diff --git a/module/execution/css/task.css b/module/execution/css/task.css index 2b5c374680..df5a1d9368 100644 --- a/module/execution/css/task.css +++ b/module/execution/css/task.css @@ -1,6 +1,7 @@ td.delayed {background: #e84e0f !important; color: white;} #int-dropdown {margin-left: -8px; border-radius: 4px; border: 1px solid #0c64eb;} #projectTaskForm table tbody tr td {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} +th.c-deadline {text-align: center;} .table td.c-estimate, .table td.c-consumed, .table td.c-left {padding-right: 12px;} .c-estimate {text-align: right;} .c-consumed {text-align: right;} diff --git a/module/task/model.php b/module/task/model.php index 9bac6c7e02..af4aa9ab5b 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -3408,7 +3408,7 @@ class taskModel extends model if($id == 'status') $class .= ' task-' . $task->status; if($id == 'id') $class .= ' cell-id'; if($id == 'name') $class .= ' text-left'; - if($id == 'deadline') $class .= ' text-left'; + if($id == 'deadline') $class .= ' text-center'; if($id == 'deadline' and isset($task->delay)) $class .= ' delayed'; if($id == 'assignedTo') $class .= ' has-btn text-left'; if($id == 'lane') $class .= ' text-left';