From 1ecbb978cefd7359f35b1bec22368a7ad6d3efd7 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 10 Oct 2023 16:05:45 +0800 Subject: [PATCH] * Fix bug #39301. --- module/story/control.php | 2 +- module/task/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index d609e3925c..cf8b3427c7 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -1588,7 +1588,7 @@ class story extends control if($confirm == 'no') { if($storyType == 'requirement') $this->lang->story->confirmDelete = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->confirmDelete); - return print(js::confirm($this->lang->story->confirmDelete, $this->createLink('story', 'delete', "story=$storyID&confirm=yes&from=$from&storyType=$storyType"), '')); + return print(js::confirm($this->lang->story->confirmDelete, $this->createLink('story', 'delete', "story=$storyID&confirm=yes&from=$from&storyType=$storyType"))); } else { diff --git a/module/task/model.php b/module/task/model.php index e33ad56df4..a7fbf22f2b 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -4280,7 +4280,7 @@ class taskModel extends model $menu .= $this->buildMenu('task', 'edit', $params, $task, 'view', '', '', 'showinonlybody'); $menu .= $this->buildMenu('task', 'create', "projctID={$task->execution}&storyID=0&moduleID=0&taskID=$task->id", $task, 'view', 'copy'); - $menu .= $this->buildMenu('task', 'delete', "executionID=$task->execution&taskID=$task->id", $task, 'view', 'trash', 'hiddenwin', 'showinonlybody', true); + $menu .= $this->buildMenu('task', 'delete', "executionID=$task->execution&taskID=$task->id", $task, 'view', 'trash', 'hiddenwin', 'showinonlybody'); if($task->parent > 0) $menu .= $this->buildMenu('task', 'view', "taskID=$task->parent", $task, 'view', 'chevron-double-up', '', '', '', '', $this->lang->task->parent); return $menu;