1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Working on task kanban

This commit is contained in:
Hillel Coren 2017-12-19 20:41:32 +02:00
parent eb41340b03
commit 7832fc0c0b

View File

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