* show story spec in task view

This commit is contained in:
chujilu
2014-08-12 11:30:43 +08:00
parent e596a80929
commit e4efa79e57
4 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -387,7 +387,9 @@ class task extends control
*/
public function view($taskID)
{
$task = $this->task->getById($taskID, true);
$task = $this->task->getById($taskID, true);
$story = $this->story->getById($task->story);
$task->storySpec = ($story != null) ? $story->spec : '';
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
/* Update action. */