* Code for task #49888.

This commit is contained in:
zhangzilong
2022-03-07 13:07:52 +08:00
parent 4f5455a114
commit 45ad8dbf96
11 changed files with 146 additions and 7 deletions
+22
View File
@@ -322,6 +322,28 @@ class bug extends control
if($this->app->tab == 'execution')
{
if(isset($output['executionID'])) $this->loadModel('execution')->setMenu($output['executionID']);
$execution = $this->dao->findById((int)$output['executionID'])->from(TABLE_EXECUTION)->fetch();
if($execution->type == 'kanban')
{
$this->loadModel('kanban');
$cardPositions = $this->kanban->getCardPositions($output['executionID'], 'bug', 'unconfirmed');
$kanbanLanePairs = array();
if(isset($output['laneID']))
{
$lane = $this->kanban->getLaneByID($output['laneID']);
$kanbanLanePairs = $this->kanban->getLanePairsByRegion($lane->region, 'bug');
}
else
{
foreach($cardPositions as $cardPosition) $kanbanLanePairs[$cardPosition->laneID] = $cardPosition->name . ' / ' . $cardPosition->laneName;
}
if($this->post->kanbanLane) $extras = 'laneID=' . "{$this->post->kanbanLane}" . ",columnID=" . $cardPositions[$this->post->kanbanLane]->columnID . ",executionID=" . $output['executionID'];
$this->view->kanbanLanePairs = $kanbanLanePairs;
}
}
else if($this->app->tab == 'project')
{