Duplicate a project with tasks will copy the new tasks in the same columns

This commit is contained in:
Frederic Guillot
2015-10-07 19:01:08 -04:00
parent 6dba53317c
commit 4785174e43
5 changed files with 40 additions and 14 deletions

View File

@@ -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
*