diff --git a/module/kanban/control.php b/module/kanban/control.php index 86052efef7..0ff34832b9 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -1708,7 +1708,7 @@ class kanban extends control */ public function ajaxGetColumns(int $laneID) { - $lane = $this->kanban->getLaneByID($laneID); + $lane = $this->kanban->getLaneByID($laneID); $columns = $this->kanban->getColumnPairsByGroup($lane->group); $columnList = array(); diff --git a/module/kanban/model.php b/module/kanban/model.php index d3a6176160..4aad148ded 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -3857,15 +3857,14 @@ class kanbanModel extends model * @param int $cardID * @param int $kanbanID * @access public - * @return void + * @return object */ - public function getCellByCard(int $cardID, int $kanbanID) + public function getCellByCard(int $cardID, int $kanbanID): object|false { - $cell = $this->dao->select('id,cards,lane,`column`')->from(TABLE_KANBANCELL) + return $this->dao->select('id,cards,lane,`column`')->from(TABLE_KANBANCELL) ->where('kanban')->eq($kanbanID) ->andWhere('type')->eq('common') ->andWhere('cards')->like("%,$cardID,%") ->fetch(); - return $cell; } }