update tickets_kanban.php
This commit is contained in:
+6
-2
@@ -92,8 +92,12 @@ $kanban_array = array_values($statuses);
|
||||
|
||||
// Sort the array by the 'order' field, moving null values to the end
|
||||
usort($kanban_array, function($a, $b) {
|
||||
if ($a->order === null) return 1;
|
||||
if ($b->order === null) return -1;
|
||||
if ($a->order === null) {
|
||||
return 1;
|
||||
}
|
||||
if ($b->order === null) {
|
||||
return -1;
|
||||
}
|
||||
return $a->order - $b->order;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user