* Modify the code logic.
This commit is contained in:
@@ -2019,7 +2019,7 @@ class storyModel extends model
|
||||
foreach($executions as $execution => $branch)
|
||||
{
|
||||
$this->dao->replace(TABLE_STORYSTAGE)->set('story')->eq($storyID)->set('branch')->eq($branch)->set('stage')->eq('closed')->exec();
|
||||
$this->kanban->updateLane($execution, 'story');
|
||||
$this->kanban->updateLane($execution, 'story', $storyID);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -2176,13 +2176,7 @@ class storyModel extends model
|
||||
$currentStory = $this->dao->findById($storyID)->from(TABLE_STORY)->fetch();
|
||||
if($story->stage != $currentStory->stage)
|
||||
{
|
||||
$executionIdList = $this->dao->select('t1.id')->from(TABLE_PROJECT)->alias('t1')
|
||||
->leftJoin(TABLE_PROJECTSTORY)->alias('t2')->on('t1.id=t2.project')
|
||||
->where('t1.deleted')->eq(0)
|
||||
->andWhere('t1.type')->in('sprint,stage,kanban')
|
||||
->andWhere('t2.story')->eq($storyID)
|
||||
->fetchPairs();
|
||||
foreach($executionIdList as $executionID)
|
||||
foreach($executions as $executionID => $branch)
|
||||
{
|
||||
$this->kanban->updateLane($executionID, 'story', $storyID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user