summaryrefslogtreecommitdiff
path: root/app/Model/Subtask.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-20 11:24:43 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-20 11:24:43 -0500
commitc8c1242c26a11dc2abc7126829d76430612e7107 (patch)
tree012c7cf8df996b3af570120cfbfc3dd75eb5a13d /app/Model/Subtask.php
parent2d27c36a71f08bea60a992b051bfb8a2d8bd06b6 (diff)
Add drag and drop to change column positions
Diffstat (limited to 'app/Model/Subtask.php')
-rw-r--r--app/Model/Subtask.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php
index 3707af13..b5898fcf 100644
--- a/app/Model/Subtask.php
+++ b/app/Model/Subtask.php
@@ -263,27 +263,6 @@ class Subtask extends Base
}
/**
- * Get subtasks with consecutive positions
- *
- * If you remove a subtask, the positions are not anymore consecutives
- *
- * @access public
- * @param integer $task_id
- * @return array
- */
- public function getNormalizedPositions($task_id)
- {
- $subtasks = $this->db->hashtable(self::TABLE)->eq('task_id', $task_id)->asc('position')->getAll('id', 'position');
- $position = 1;
-
- foreach ($subtasks as $subtask_id => $subtask_position) {
- $subtasks[$subtask_id] = $position++;
- }
-
- return $subtasks;
- }
-
- /**
* Save subtask position
*
* @access public