diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-04 20:14:26 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-04 20:14:26 -0700 |
commit | 954bed954f6c81cbcdb217966dcc9e008e7dd149 (patch) | |
tree | 3a3b54ed309a151476f2a0e77bbf35baaa078765 /app/Model/Board.php | |
parent | 749136361e6eedbc868778db17bdc67aa0f3b677 (diff) |
Task move position refactoring
Diffstat (limited to 'app/Model/Board.php')
-rw-r--r-- | app/Model/Board.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/Model/Board.php b/app/Model/Board.php index 8fb30e70..07020600 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -21,32 +21,6 @@ class Board extends Base const TABLE = 'columns'; /** - * Save task positions for each column - * - * @access public - * @param array $positions [['task_id' => X, 'column_id' => X, 'position' => X], ...] - * @param integer $selected_task_id The selected task id - * @return boolean - */ - public function saveTasksPosition(array $positions, $selected_task_id) - { - $this->db->startTransaction(); - - foreach ($positions as $value) { - - // We trigger events only for the selected task - if (! $this->task->movePosition($value['task_id'], $value['column_id'], $value['position'], $value['task_id'] == $selected_task_id)) { - $this->db->cancelTransaction(); - return false; - } - } - - $this->db->closeTransaction(); - - return true; - } - - /** * Create a board with default columns, must be executed inside a transaction * * @access public |