$status_id, 'name' => escapeHtml($row['ticket_status_name']), 'color' => escapeHtml($row['ticket_status_color']), 'pauses_sla' => intval($row['ticket_status_pauses_sla']), 'tickets' => array() ); } $ordering_snippet = "ORDER BY CASE WHEN ticket_priority = 'Urgent' THEN 0 WHEN ticket_priority = 'High' THEN 1 WHEN ticket_priority = 'Medium' THEN 2 WHEN ticket_priority = 'Low' THEN 3 ELSE 4 END, ticket_id DESC"; if ($config_ticket_ordering == 1) { $ordering_snippet = "ORDER BY ticket_order ASC"; } /* * Same WHERE clause the list view runs, so the filter bar means the same * thing in both views. The old kanban query built its own subset and quietly * ignored the SLA, priority and billing filters. */ $sql = mysqli_query($mysqli, "SELECT $ticket_select_columns FROM tickets $ticket_joins $ticket_where $ordering_snippet" ); $kanban_ticket_count = 0; $kanban_offboard_count = 0; while ($row = mysqli_fetch_assoc($sql)) { $status_id = intval($row['ticket_status_id']); if (isset($statuses[$status_id])) { $statuses[$status_id]['tickets'][] = $row; $kanban_ticket_count++; } else { // Matched the filters but sits in a status with no column - Closed, or // a status that has since been deactivated $kanban_offboard_count++; } } $kanban = array_values($statuses); ?>

The board has no column for these tickets - closed tickets are not shown on the kanban.

Show them in the list

No tickets match these filters.

Clear the filters
matching ticket not shown - the board has no column for closed tickets. Show them in the list
· ' . escapeHtml($item['contact_name']) . ''; } } else { echo escapeHtml($item['contact_name']); } ?>