diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-07 19:01:08 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-07 19:01:08 -0400 |
commit | 4785174e43d61b20e9248c8bfe9b5b50c61a5ae6 (patch) | |
tree | f72a8a3a27401a6b074c92a7457d324962bfdc61 /app/Model/Board.php | |
parent | 6dba53317c202c56ba60cf490084630de42b939c (diff) |
Duplicate a project with tasks will copy the new tasks in the same columns
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 0e2cbaaa..7217542d 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -403,6 +403,18 @@ class Board extends Base } /** + * Get a column title by the id + * + * @access public + * @param integer $column_id + * @return integer + */ + public function getColumnTitleById($column_id) + { + return $this->db->table(self::TABLE)->eq('id', $column_id)->findOneColumn('title'); + } + + /** * Get the position of the last column for a given project * * @access public |