mirror of
https://github.com/itflow-org/itflow
synced 2026-03-24 14:35:38 +00:00
update tickets_kanban.php
This commit is contained in:
@@ -92,8 +92,12 @@ $kanban_array = array_values($statuses);
|
|||||||
|
|
||||||
// Sort the array by the 'order' field, moving null values to the end
|
// Sort the array by the 'order' field, moving null values to the end
|
||||||
usort($kanban_array, function($a, $b) {
|
usort($kanban_array, function($a, $b) {
|
||||||
if ($a->order === null) return 1;
|
if ($a->order === null) {
|
||||||
if ($b->order === null) return -1;
|
return 1;
|
||||||
|
}
|
||||||
|
if ($b->order === null) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return $a->order - $b->order;
|
return $a->order - $b->order;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user