Wilson,
Just add the following any time you want to get back to the ticket list. I've added it to about a half a dozen places:
$page='tickets.inc.php'; //ticket is gone...go back to the listing.
For instance, in scp/tickets.php
case 'close':
if(!$thisuser->isadmin() && !$thisuser->canCloseTickets()){
$errors='Perm. Denied. You are not allowed to close tickets.';
}else{
if($ticket->close()){
$page='tickets.inc.php'; //ticket is gone...go back to the listing. $msg='Ticket status set to CLOSED';
}else{
$errors='Problems closing the ticket. Try again';
}
}
or under the case for 'reply':
//If no error...do the do.
if(!$errors && ($respId=$ticket->postResponse($_POST,$_POST,$_POST,$_FILES))){
$msg='Response Posted Successfully';
$page='tickets.inc.php'; //ticket is gone...go back to the listing.
//Set status if any.
if(isset($_POST) && $_POST)
$ticket->setStatus($_POST);
//Finally upload attachment if any
if($_FILES && $_FILES){
$ticket->uploadAttachment($_FILES,$respId,'R');
}
}else{
$errors=$errors?$errors:'Unable to post the response.';
}
break;
This should get you what you want.