* add story files and comments for task view.

This commit is contained in:
chenfeiCF
2016-03-07 13:16:51 +08:00
parent fb65e3660b
commit d97d22c0db
5 changed files with 50 additions and 2 deletions
+3 -1
View File
@@ -455,7 +455,9 @@ class task extends control
else
{
$story = $this->story->getById($task->story);
$task->storySpec = empty($story) ? '' : $story->spec;
$task->storySpec = empty($story) ? '' : $story->spec;
$task->storyComments = empty($story) ? array() : $this->task->getStoryComments($task->story);
$task->storyFiles = $this->loadModel('file')->getByObject('story', $task->story);
}
/* Update action. */