* Fix bug for change story.

This commit is contained in:
zhengrunyu
2022-03-30 10:01:42 +08:00
committed by hufangzhou
parent c047d2b422
commit b118024249
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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');
+1 -1
View File
@@ -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);