From 4785174e43d61b20e9248c8bfe9b5b50c61a5ae6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 7 Oct 2015 19:01:08 -0400 Subject: Duplicate a project with tasks will copy the new tasks in the same columns --- app/Model/Board.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/Model/Board.php') 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 @@ -402,6 +402,18 @@ class Board extends Base return (int) $this->db->table(self::TABLE)->eq('project_id', $project_id)->eq('title', $title)->findOneColumn('id'); } + /** + * 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 * -- cgit v1.2.3