* Fix bug for change story.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user