From 3cb954f0cb6e36b17b6365484f3fd3b76cee0d90 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Tue, 1 Jun 2021 16:48:57 +0800 Subject: [PATCH] * Fix start problem. --- module/todo/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/todo/control.php b/module/todo/control.php index 04971d3d52..9546e01b68 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -282,11 +282,12 @@ class todo extends control { $confirmNote = 'confirm' . ucfirst($todo->type); $confirmURL = $this->createLink($todo->type, 'view', "id=$todo->idvalue"); + $okTarget = isonlybody() ? 'parent' : 'window.parent.$.apps.open'; if($todo->type == 'bug') $app = 'qa'; if($todo->type == 'task') $app = 'execution'; if($todo->type == 'story') $app = 'product'; $cancelURL = $this->server->HTTP_REFERER; - die(js::confirm(sprintf($this->lang->todo->$confirmNote, $todo->idvalue), $confirmURL, $cancelURL, 'window.parent.$.apps.open', 'parent', $app)); + die(js::confirm(sprintf($this->lang->todo->$confirmNote, $todo->idvalue), $confirmURL, $cancelURL, $okTarget, 'parent', $app)); } if(isonlybody())die(js::reload('parent.parent')); die(js::reload('parent'));