diff --git a/api/v1/entries/story.php b/api/v1/entries/story.php index b80ecc571c..79e3fe702f 100644 --- a/api/v1/entries/story.php +++ b/api/v1/entries/story.php @@ -53,8 +53,6 @@ class storyEntry extends Entry } $story->moduleTitle = $moduleTitle; - $users = $this->loadModel('user')->getList(); - $storyTasks = array(); foreach($story->tasks as $executionTasks) { @@ -64,7 +62,7 @@ class storyEntry extends Entry $storyTasks[] = $this->filterFields($task, 'id,name,type,status,assignedTo'); } } - $story->tasks = $storyTasks; + $story->tasks = $this->format($storyTasks, 'assignedTo:user'); $story->bugs = array(); foreach($data->data->bugs as $bug) $story->bugs[] = $this->filterFields($bug, 'id,title,status,pri,severity'); diff --git a/module/story/control.php b/module/story/control.php index 6b31283fc2..0d0bf5470b 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1124,7 +1124,7 @@ class story extends control $plan = $this->dao->findById($story->plan)->from(TABLE_PRODUCTPLAN)->fetch('title'); $bugs = $this->dao->select('id,title,status,pri,severity')->from(TABLE_BUG)->where('story')->eq($storyID)->andWhere('deleted')->eq(0)->fetchAll(); $fromBug = $this->dao->select('id,title')->from(TABLE_BUG)->where('toStory')->eq($storyID)->fetch(); - $cases = $this->dao->select('id,title')->from(TABLE_CASE)->where('story')->eq($storyID)->andWhere('deleted')->eq(0)->fetchAll(); + $cases = $this->dao->select('id,title,status,pri')->from(TABLE_CASE)->where('story')->eq($storyID)->andWhere('deleted')->eq(0)->fetchAll(); $linkedMRs = $this->loadModel('mr')->getLinkedMRPairs($storyID, 'story'); $modulePath = $this->tree->getParents($story->module); $storyModule = empty($story->module) ? '' : $this->tree->getById($story->module);