diff --git a/app/models/Ticket.php b/app/models/Ticket.php index 98cae7d..4ef4d5e 100644 --- a/app/models/Ticket.php +++ b/app/models/Ticket.php @@ -11,10 +11,11 @@ class Ticket extends \DB\SQL\Mapper { public function findAll(): array { return $this->db->exec( - 'SELECT t.* , tp.name AS priority_name, ts.name AS status_name + 'SELECT t.* , tp.name AS priority_name, ts.name AS status_name, u.display_name FROM tickets t LEFT JOIN ticket_priorities tp ON t.priority_id = tp.id LEFT JOIN ticket_statuses ts ON t.status_id = ts.id + LEFT JOIN users u ON t.created_by = u.id WHERE t.recycled = 0 ORDER BY t.created_at DESC' );