diff options
Diffstat (limited to 'models/board.php')
-rw-r--r-- | models/board.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/models/board.php b/models/board.php index 66e6998f..3142a7cc 100644 --- a/models/board.php +++ b/models/board.php @@ -88,6 +88,12 @@ class Board extends Base return $columns; } + // Get first column id for a given project + public function getFirstColumn($project_id) + { + return $this->db->table(self::TABLE)->eq('project_id', $project_id)->asc('position')->findOneColumn('id'); + } + // Get list of columns public function getColumnsList($project_id) { |