From be67b064d72908a2b8d4fbc220472b5a12382e38 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 9 Aug 2021 09:48:30 +0800 Subject: [PATCH 1/2] * Fix bug#13727. --- module/task/model.php | 2 +- module/task/view/batchedit.html.php | 8 ++++---- module/task/view/edit.html.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index db89381a78..da9d953ac4 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1216,7 +1216,7 @@ class taskModel extends model { if($task->status == 'done' and $task->consumed == false) die(js::error('task#' . $taskID . sprintf($this->lang->error->notempty, $this->lang->task->consumedThisTime))); if($task->status == 'cancel') continue; - if($task->estStarted > $task->deadline) die(js::error('task#' . $taskID . $this->lang->task->error->deadlineSmall)); + if(!empty($task->deadline) and $task->estStarted > $task->deadline) die(js::error('task#' . $taskID . $this->lang->task->error->deadlineSmall)); foreach(explode(',', $this->config->task->edit->requiredFields) as $field) { $field = trim($field); diff --git a/module/task/view/batchedit.html.php b/module/task/view/batchedit.html.php index 637ff9a981..f67a02544b 100755 --- a/module/task/view/batchedit.html.php +++ b/module/task/view/batchedit.html.php @@ -128,12 +128,12 @@ js::set('dittoNotice', $dittoNotice); ' style='overflow:visible'>assignedTo, "class='form-control chosen' {$disableAssignedTo}");?> type, "class='form-control'");?> >status, "class='form-control'");?> - >estStarted, "class='form-control text-center form-date'");?> - >deadline, "class='form-control text-center form-date'");?> - >pri, "class='form-control'");?> + >estStarted) ? '' : $tasks[$taskID]->estStarted, "class='form-control text-center form-date'");?> + >deadline) ? '' : $tasks[$taskID]->deadline, "class='form-control text-center form-date'");?> + >pri, "class='form-control'");?> >estimate, "class='form-control text-center' {$disableHour}");?> > - >left, "class='form-control text-center' {$disableHour}");?> + >left, "class='form-control text-center' {$disableHour}");?> ' style='overflow:visible'>finishedBy, "class='form-control chosen'");?> ' style='overflow:visible'>canceledBy, "class='form-control chosen'");?> ' style='overflow:visible'>closedBy, "class='form-control chosen'");?> diff --git a/module/task/view/edit.html.php b/module/task/view/edit.html.php index e1931015f9..57ca6fd300 100644 --- a/module/task/view/edit.html.php +++ b/module/task/view/edit.html.php @@ -175,11 +175,11 @@ - + - + From ea22005a73e432bdf378c281fd2e79251c8a413a Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 9 Aug 2021 10:30:49 +0800 Subject: [PATCH 2/2] * Fix bug#14102. --- module/group/view/privbygroup.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/group/view/privbygroup.html.php b/module/group/view/privbygroup.html.php index 66c6b83b16..f1b357891f 100644 --- a/module/group/view/privbygroup.html.php +++ b/module/group/view/privbygroup.html.php @@ -38,7 +38,7 @@ @@ -130,7 +130,7 @@
task->estStarted;?>estStarted, "class='form-control form-date'");?>estStarted) ? '' : $task->estStarted, "class='form-control form-date'");?>
task->deadline;?>deadline, "class='form-control form-date'");?>deadline) ? '' : $task->deadline, "class='form-control form-date'");?>
task->estimate;?> - + inlink('browse'), $lang->goback, '', "class='btn btn-back btn-wide'");?>
- + inlink('browse'), $lang->goback, '', "class='btn btn-back btn-wide'");?>