Ok, with some further testing I got everything working.
The following is what I have for all of my entries. I will include one line prior to the code so you can search for where to enter it.
All entries are in include/staff/tickets.inc.php
~Line 171
//I admit this crap sucks...but who cares??
// Addition by webPragmatist
$sortOptions=array('date'=>'ticket.created','ID'=> 'ticketID','pri'=>'priority_urgency','dept'=>'dept _name','ass'=>'firstname');
// End addition by webPragmatist
//$sortOptions=array('date'=>'ticket.created','ID'=>'ticketID','pri'=>'priority_urgency','dept'=>'dept_name');
~Line 198
$pagelimit=$pagelimit?$pagelimit; //true default...if all fails.
$page=($_GET && is_numeric($_GET))?$_GET;
// *** Edited by webPragmatist
$qselect = 'SELECT DISTINCT ticket.ticket_id,lock_id,ticketID,ticket.dept_id,ticket.staff_id,subject,name,ticket.email,dept_name,staff.firstname,staff.lastname '.
',ticket.status,ticket.source,isoverdue,ticket.created,pri.*,count(attach.attach_id) as attachments ';
$qfrom=' FROM '.TICKET_TABLE.' ticket LEFT JOIN '.DEPT_TABLE.' dept ON ticket.dept_id=dept.dept_id '.
// ' LEFT JOIN '.TICKET_PRIORITY_TABLE.' pri ON ticket.priority_id=pri.priority_id '.
// ' LEFT JOIN '.TICKET_LOCK_TABLE.' tlock ON ticket.ticket_id=tlock.ticket_id AND tlock.expire>NOW() '.
' LEFT JOIN '.STAFF_TABLE.' staff ON ticket.staff_id=staff.staff_id';
// *** End edit by webPragmatist
/*
$qselect = 'SELECT DISTINCT ticket.ticket_id,lock_id,ticketID,ticket.dept_id,ticket.staff_id,subject,name,email,dept_name '.
',ticket.status,ticket.source,isoverdue,isanswered,ticket.created,pri.* ,count(attach.attach_id) as attachments ';
$qfrom=' FROM '.TICKET_TABLE.' ticket '.
' LEFT JOIN '.DEPT_TABLE.' dept ON ticket.dept_id=dept.dept_id ';
*
~Line 392
<a href="tickets.php?sort=dept&order=<?=$negorder?><?=$qstr?>" title="Sort By Category <?=$negorder?>">Department</a></th>
Addition by webPragmatist
<th width="150" ><a href="tickets.php?sort=ass&order=<?=$negorder?><?=$qstr?>" title="Sort By Assignee <?=$negorder?>">Assigned To</a></th>
End addition by webPragmatist
~Line 435
<td nowrap><?=Format:($row,30)?></td>
Addition by webPragmatist
<td nowrap><?=($row) ? $row : ' ';?> <?=($row) ? $row : '';?></td>
End addition by webPragmatist
You may notice that my entries have firstname and lastname instead of username as I wanted to have the full name show up of the person thats been assigned to it instead of just a username.
Please let me know if you have any issues with any of this.
Thanks