* Finish task #55178.

This commit is contained in:
孙广明
2022-05-24 14:15:34 +08:00
parent 1b506899e2
commit 495a034784
3 changed files with 15 additions and 0 deletions
Regular → Executable
+13
View File
@@ -1383,6 +1383,19 @@ class task extends control
{
$task = $this->task->getById($taskID);
$execution = $this->execution->getByID($task->execution);
if(isset($task->fromIssue) and $task->fromIssue > 0)
{
$fromIssue = $this->loadModel('issue')->getByID($task->fromIssue);
if($fromIssue->status != 'closed')
{
$confirmURL = $this->createLink('issue', 'close', "id=$task->fromIssue");
unset($_GET['onlybody']);
$cancelURL = $this->createLink('task', 'view', "taskID=$taskID");
return print(js::confirm(sprintf($this->lang->task->remindIssue, $task->fromIssue), $confirmURL, $cancelURL, 'parent', 'parent.parent'));
}
}
if($execution->type == 'kanban' and $this->app->tab == 'execution')
{
$regionID = isset($output['regionID']) ? $output['regionID'] : 0;