From 3bb38d3358ccbe4dd5e71a51dfd0b5015cb214df Mon Sep 17 00:00:00 2001 From: liuhong Date: Mon, 9 Jan 2023 01:00:12 +0000 Subject: [PATCH] * Fix bug #31559. --- module/productplan/control.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module/productplan/control.php b/module/productplan/control.php index ab589b4eae..e233505224 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -758,7 +758,15 @@ class productplan extends control $this->productplan->unlinkStory($storyID, $planID); $this->loadModel('action')->create('productplan', $planID, 'unlinkstory', '', $storyID); - return print(js::locate($this->createLink('productplan', 'view', "planID=$planID&type=story"), 'parent')); + if($this->session->storyList) + { + return print(js::locate($this->session->storyList, 'parent')); + } + else + { + return print(js::locate($this->createLink('productplan', 'view', "planID=$planID&type=story"), 'parent')); + } + } }