From d1576572ff653f56abf830c483f72a4c2359b76b Mon Sep 17 00:00:00 2001 From: liuhong Date: Thu, 25 Aug 2022 06:49:05 +0000 Subject: [PATCH] *Fix bug --- extension/lite/my/ext/view/task.html.php | 5 +++-- module/block/view/taskblock.html.php | 7 +++++-- module/my/view/task.html.php | 5 +++-- module/user/view/task.html.php | 7 +++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/extension/lite/my/ext/view/task.html.php b/extension/lite/my/ext/view/task.html.php index 032ccfee7a..01f53c561d 100644 --- a/extension/lite/my/ext/view/task.html.php +++ b/extension/lite/my/ext/view/task.html.php @@ -95,8 +95,9 @@ } else { - $class = ($task->executionType == 'kanban') ? 'iframe' : ''; - echo html::a($this->createLink('task', 'view', "taskID=$task->id", '', true, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'"); + $onlybody = $task->executionType == 'kanban' ? true : ''; + $class = $task->executionType == 'kanban' ? 'iframe' : ''; + echo html::a($this->createLink('task', 'view', "taskID=$task->id", '', $onlybody, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'"); } ?> children)) echo '';?> diff --git a/module/block/view/taskblock.html.php b/module/block/view/taskblock.html.php index aacaca3a69..1a40a154b9 100644 --- a/module/block/view/taskblock.html.php +++ b/module/block/view/taskblock.html.php @@ -44,8 +44,11 @@ id);?> task->priList, $task->pri, $task->pri)?> - executionType == 'kanban') ? 'iframe' : '';?> - createLink('task', 'view', "taskID=$task->id", '', true, $task->project), $task->name, null, "class='$class' data-width='80%' data-toggle='modal'")?> + executionType == 'kanban' ? true : ''; + $class = $task->executionType == 'kanban' ? "class='iframe' data-toggle='modal'" : ''; + ?> + createLink('task', 'view', "taskID=$task->id", '', $onlybody, $task->project), $task->name, null, "$class data-width='80%'")?> estimate . $lang->execution->workHourUnit;?> deadline, 0, 4) > 0) echo $task->deadline;?> diff --git a/module/my/view/task.html.php b/module/my/view/task.html.php index 14af9270fd..69b47b7bfc 100644 --- a/module/my/view/task.html.php +++ b/module/my/view/task.html.php @@ -108,8 +108,9 @@ } else { - $class = ($task->executionType == 'kanban') ? 'iframe' : ''; - echo html::a($this->createLink('task', 'view', "taskID=$task->id", '', true, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'"); + $onlybody = $task->executionType == 'kanban' ? true : ''; + $class = $task->executionType == 'kanban' ? 'iframe' : ''; + echo html::a($this->createLink('task', 'view', "taskID=$task->id", '', $onlybody, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'"); } ?> children)) echo '';?> diff --git a/module/user/view/task.html.php b/module/user/view/task.html.php index 8c9999fd4d..0dbd01df7d 100644 --- a/module/user/view/task.html.php +++ b/module/user/view/task.html.php @@ -61,8 +61,11 @@ team)) echo '' . $this->lang->task->multipleAB . ' ';?> parent > 0) echo '' . $this->lang->task->childrenAB . ' ';?> - executionType == 'kanban') ? 'iframe' : '';?> - createLink('task', 'view', "taskID=$task->id", '', true, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'");?> + executionType == 'kanban' ? true : ''; + $class = $task->executionType == 'kanban' ? 'iframe' : ''; + ?> + createLink('task', 'view', "taskID=$task->id", '', $onlybody, $task->project), $task->name, null, "class='$class' data-width='80%' style='color: $task->color'");?> estimate . $lang->execution->workHourUnit;?> consumed . $lang->execution->workHourUnit;?>