summaryrefslogtreecommitdiff
path: root/app/Model/Project.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-25 11:55:12 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-25 11:55:12 -0500
commite506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea (patch)
treecbb12b785f0ef33e725ef24a277fef7a682af5ff /app/Model/Project.php
parent655d75a3cf154d14b10ffbf2baa42a549cf214f7 (diff)
Do not show inactive projects info on the dashboard and update picodb (merge #546)
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r--app/Model/Project.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php
index a9693fbb..a072a5c1 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -128,10 +128,10 @@ class Project extends Base
public function getList($prepend = true)
{
if ($prepend) {
- return array(t('None')) + $this->db->table(self::TABLE)->asc('name')->listing('id', 'name');
+ return array(t('None')) + $this->db->hashtable(self::TABLE)->asc('name')->getAll('id', 'name');
}
- return $this->db->table(self::TABLE)->asc('name')->listing('id', 'name');
+ return $this->db->hashtable(self::TABLE)->asc('name')->getAll('id', 'name');
}
/**
@@ -160,10 +160,10 @@ class Project extends Base
public function getListByStatus($status)
{
return $this->db
- ->table(self::TABLE)
+ ->hashtable(self::TABLE)
->asc('name')
->eq('is_active', $status)
- ->listing('id', 'name');
+ ->getAll('id', 'name');
}
/**