* adjust code for task #608.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-12-06 01:10:18 +00:00
parent 197b0dfdee
commit f97edb50d6
+8 -1
View File
@@ -42,7 +42,14 @@ class story extends control
$this->loadModel('action');
$actionID = $this->action->create('story', $storyID, 'Opened', '');
$this->sendMail($storyID, $actionID);
die(js::locate($this->createLink('story', 'view', "storyID=$storyID"), 'parent'));
if($projectID == 0)
{
die(js::locate($this->createLink('story', 'view', "storyID=$storyID"), 'parent'));
}
else
{
die(js::locate($this->createLink('project', 'story', "projectID=$projectID"), 'parent'));
}
}
/* Set products, users and module. */