1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for kanban sorting

This commit is contained in:
Hillel Coren 2018-01-24 15:57:08 +02:00
parent 205094cd4c
commit 8580676a11

View File

@ -118,7 +118,7 @@ class TaskKanbanController extends BaseController
$origSortOrder = $status->sort_order;
$newSortOrder = request('sort_order');
if ($newSortOrder && $newSortOrder != $origSortOrder) {
if ($newSortOrder != $origSortOrder) {
TaskStatus::scope()
->where('sort_order', '>', $origSortOrder)
->decrement('sort_order');