mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Check kanban statuses are in sequential order
This commit is contained in:
parent
a94f2dcc27
commit
30469dbd03
@ -55,8 +55,16 @@ class TaskKanbanController extends BaseController
|
||||
$task->task_status_sort_order = $i++;
|
||||
$task->save();
|
||||
}
|
||||
// otherwise, check that the tasks orders are correct
|
||||
// otherwise, check that the orders are correct
|
||||
} else {
|
||||
for ($i=0; $i<$statuses->count(); $i++) {
|
||||
$status = $statuses[$i];
|
||||
if ($status->sort_order != $i) {
|
||||
$status->sort_order = $i;
|
||||
$status->save();
|
||||
}
|
||||
}
|
||||
|
||||
$firstStatus = $statuses[0];
|
||||
$counts = [];
|
||||
foreach ($tasks as $task) {
|
||||
|
Loading…
Reference in New Issue
Block a user