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')); + } + } }