summaryrefslogtreecommitdiff
path: root/app/Model/Swimlane.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/Swimlane.php
parent655d75a3cf154d14b10ffbf2baa42a549cf214f7 (diff)
Do not show inactive projects info on the dashboard and update picodb (merge #546)
Diffstat (limited to 'app/Model/Swimlane.php')
-rw-r--r--app/Model/Swimlane.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Model/Swimlane.php b/app/Model/Swimlane.php
index 7a88cec1..71b95ae9 100644
--- a/app/Model/Swimlane.php
+++ b/app/Model/Swimlane.php
@@ -171,7 +171,7 @@ class Swimlane extends Base
$swimlanes = array_merge(
$swimlanes,
- $this->db->table(self::TABLE)->eq('project_id', $project_id)->orderBy('name', 'asc')->listing('id', 'name')
+ $this->db->hashtable(self::TABLE)->eq('project_id', $project_id)->orderBy('name', 'asc')->getAll('id', 'name')
);
return $prepend ? array(-1 => t('All swimlanes')) + $swimlanes : $swimlanes;
@@ -354,11 +354,11 @@ class Swimlane extends Base
*/
public function moveDown($project_id, $swimlane_id)
{
- $swimlanes = $this->db->table(self::TABLE)
+ $swimlanes = $this->db->hashtable(self::TABLE)
->eq('project_id', $project_id)
->eq('is_active', self::ACTIVE)
->asc('position')
- ->listing('id', 'position');
+ ->getAll('id', 'position');
$positions = array_flip($swimlanes);
@@ -388,11 +388,11 @@ class Swimlane extends Base
*/
public function moveUp($project_id, $swimlane_id)
{
- $swimlanes = $this->db->table(self::TABLE)
+ $swimlanes = $this->db->hashtable(self::TABLE)
->eq('project_id', $project_id)
->eq('is_active', self::ACTIVE)
->asc('position')
- ->listing('id', 'position');
+ ->getAll('id', 'position');
$positions = array_flip($swimlanes);