diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-22 19:20:17 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-22 19:20:17 -0400 |
commit | 92510eefb15fe6c140b295487a1e0830d29e2029 (patch) | |
tree | 5a00665c9058feb2b18487b37629da2dec632ed8 /app/Model | |
parent | 0e5cdfa6abc3e3a95f703bc17549217f61d9a4f8 (diff) |
Improve and translate pull-request
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/TaskPosition.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Model/TaskPosition.php b/app/Model/TaskPosition.php index c2b5cb86..6dd10b02 100644 --- a/app/Model/TaskPosition.php +++ b/app/Model/TaskPosition.php @@ -21,6 +21,7 @@ class TaskPosition extends Base * @param integer $column_id Column id * @param integer $position Position (must be >= 1) * @param integer $swimlane_id Swimlane id + * @param boolean $fire_events Fire events * @return boolean */ public function movePosition($project_id, $task_id, $column_id, $position, $swimlane_id = 0, $fire_events = true) @@ -30,13 +31,14 @@ class TaskPosition extends Base $result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id); if ($result) { - + if ($original_task['swimlane_id'] != $swimlane_id) { $this->calculateAndSave($project_id, 0, $column_id, 1, $original_task['swimlane_id']); } - if ($fire_events) + if ($fire_events) { $this->fireEvents($original_task, $column_id, $position, $swimlane_id); + } } return $result; |