* [bug#60168,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2025-02-28 11:25:32 +08:00
committed by 田淑杰
parent 12b0f6080b
commit 7f7d75d407
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -1711,7 +1711,12 @@ class kanban extends control
public function ajaxGetColumns(int $laneID)
{
$lane = $this->kanban->getLaneByID($laneID);
$columns = $this->kanban->getColumnPairsByGroup($lane->group);
$columns = $this->dao->select('id,name')->from(TABLE_KANBANCOLUMN)
->where('deleted')->eq(0)
->andWhere('`group`')->eq($lane->group)
->andWhere('parent')->ne('-1')
->orderBy('id_asc')
->fetchPairs();
$columnList = array();
foreach($columns as $columnID => $columnName) $columnList[] = array('value' => $columnID, 'text' => $columnName);
+1 -1
View File
@@ -160,7 +160,7 @@ class kanbanTao extends kanbanModel
*/
protected function addChildColumnCell(int $columnID, int $childColumnID, int $i = 0)
{
$cellList = $this->dao->select('*')->from(TABLE_KANBANCELL)->where('`column`')->eq($columnID)->fetchAll();
$cellList = $this->dao->select('*')->from(TABLE_KANBANCELL)->where('`column`')->eq($columnID)->fetchAll('', false);
foreach($cellList as $cell)
{
$newCell = new stdclass();