diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-08 19:12:16 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-08 19:12:16 -0500 |
commit | 58d4231f06fbcbc54573504af2c2a4561b9e89ed (patch) | |
tree | 828837dd98873c1e83aac9cdd7a9cd367ec899a3 /app/Model/BoardModel.php | |
parent | 73dce1279760434e1d1b7a903a0a7500462d6f9c (diff) |
Improve columns table in project settings
Diffstat (limited to 'app/Model/BoardModel.php')
-rw-r--r-- | app/Model/BoardModel.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/Model/BoardModel.php b/app/Model/BoardModel.php index 4d559936..d80fb28f 100644 --- a/app/Model/BoardModel.php +++ b/app/Model/BoardModel.php @@ -92,24 +92,4 @@ class BoardModel extends Base return $this->boardModel->create($project_to, $columns); } - - /** - * Get the total of tasks per column - * - * @access public - * @param integer $project_id - * @param boolean $prepend Prepend default value - * @return array - */ - public function getColumnStats($project_id, $prepend = false) - { - $listing = $this->db - ->hashtable(TaskModel::TABLE) - ->eq('project_id', $project_id) - ->eq('is_active', 1) - ->groupBy('column_id') - ->getAll('column_id', 'COUNT(*) AS total'); - - return $prepend ? array(-1 => t('All columns')) + $listing : $listing; - } } |