From e506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 25 Jan 2015 11:55:12 -0500 Subject: Do not show inactive projects info on the dashboard and update picodb (merge #546) --- app/Model/Project.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/Model/Project.php') 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'); } /** -- cgit v1.2.3