update tickets_kanban.php

This commit is contained in:
Hugo Sampaio
2025-01-29 16:27:53 -03:00
parent b6e0990a78
commit e498cc6036
+6 -2
View File
@@ -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;
});