From 7d73cbb545dc681231251e9144d5ac38f8367ffe Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 1 Apr 2021 16:21:12 +0800 Subject: [PATCH] * Fix bug #11702. --- module/testtask/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index d898d073bf..aacf722e68 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -665,7 +665,8 @@ class testtask extends control $this->executeHooks($taskID); - $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->session->testtaskList)); + $link = isonlybody() ? 'parent' : $this->session->testtaskList; + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link)); } /* Set menu. */