diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-05-10 13:45:09 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-05-10 13:45:09 -0400 |
| commit | 94a5b12e68fc5e5f6aee7bf1d6d25427421aba7a (patch) | |
| tree | aa1f86e9fd134ec60534446948dcd2d54e02e5f7 /app/Model/Board.php | |
| parent | 98aab0d99465b40907bbc1f1108ea20db290e036 (diff) | |
| parent | ec24efa2d9599eaf6cbc39da25cffeaff555ba3c (diff) | |
Merge pull-request #847 (recurring tasks)
Diffstat (limited to 'app/Model/Board.php')
| -rw-r--r-- | app/Model/Board.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/Board.php b/app/Model/Board.php index 3650418f..eecbc91c 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -315,6 +315,18 @@ class Board extends Base } /** + * Get the last column id for a given project + * + * @access public + * @param integer $project_id Project id + * @return integer + */ + public function getLastColumn($project_id) + { + return $this->db->table(self::TABLE)->eq('project_id', $project_id)->desc('position')->findOneColumn('id'); + } + + /** * Get the list of columns sorted by position [ column_id => title ] * * @access public |
