diff options
Diffstat (limited to 'app/Model/Swimlane.php')
-rw-r--r-- | app/Model/Swimlane.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Model/Swimlane.php b/app/Model/Swimlane.php index 1aa19fee..df44985a 100644 --- a/app/Model/Swimlane.php +++ b/app/Model/Swimlane.php @@ -142,8 +142,7 @@ class Swimlane extends Base if ($status == self::ACTIVE) { $query->asc('position'); - } - else { + } else { $query->asc('name'); } @@ -172,7 +171,6 @@ class Swimlane extends Base ->findOneColumn('default_swimlane'); if ($default_swimlane) { - if ($default_swimlane === 'Default swimlane') { $default_swimlane = t($default_swimlane); } @@ -396,7 +394,6 @@ class Swimlane extends Base $positions = array_flip($swimlanes); if (isset($swimlanes[$swimlane_id]) && $swimlanes[$swimlane_id] < count($swimlanes)) { - $position = ++$swimlanes[$swimlane_id]; $swimlanes[$positions[$position]]--; @@ -430,7 +427,6 @@ class Swimlane extends Base $positions = array_flip($swimlanes); if (isset($swimlanes[$swimlane_id]) && $swimlanes[$swimlane_id] > 1) { - $position = --$swimlanes[$swimlane_id]; $swimlanes[$positions[$position]]++; @@ -459,7 +455,6 @@ class Swimlane extends Base $swimlanes = $this->getAll($project_from); foreach ($swimlanes as $swimlane) { - unset($swimlane['id']); $swimlane['project_id'] = $project_to; |