* Fix bug.

This commit is contained in:
tanghucheng
2022-03-07 13:21:50 +08:00
parent 79a38cc9ad
commit d61a43c7c1
2 changed files with 4 additions and 6 deletions
@@ -11,11 +11,10 @@ class myTask extends task
die(js::locate(helper::createLink('execution', 'create')));
}
$regionList = $this->loadModel('kanban')->getRegionPairs($executionID, 0, 'execution');
$regionIDList = array_keys($regionList);
$regionList = $this->loadModel('kanban')->getRegionPairs($executionID, 0, 'execution');
/* Filter Kanban without Lane. */
$lanes = $this->kanban->getLaneGroupByRegion($regionIDList, 'task');
$lanes = $this->kanban->getLaneGroupByRegion(array_keys($regionList), 'task');
foreach($regionList as $key => $region)
{
if(!isset($lanes[$key])) unset($regionList[$key]);
+2 -3
View File
@@ -11,11 +11,10 @@ class myTask extends task
die(js::locate(helper::createLink('execution', 'create')));
}
$regionList = $this->loadModel('kanban')->getRegionPairs($executionID, 0, 'execution');
$regionIDList = array_keys($regionList);
$regionList = $this->loadModel('kanban')->getRegionPairs($executionID, 0, 'execution');
/* Filter Kanban without Lane. */
$lanes = $this->kanban->getLaneGroupByRegion($regionIDList, 'task');
$lanes = $this->kanban->getLaneGroupByRegion(array_keys($regionList), 'task');
foreach($regionList as $key => $region)
{
if(!isset($lanes[$key])) unset($regionList[$key]);