Hello i'm trying to translate those status but i have a problem :
The client view is ok but i can see only closed tickets in staff view.
After some research, i think the problem is in this part of code from include/staff/tickets.inc.php :
// This sucks but we need to switch queues on the fly! depending on stats fetched on the parent.
if($stats) {
echo $stats;
if(!$stats && (!$status || $status=='ouvert')){
echo '2<br />';
if(!$cfg->showAnsweredTickets() && $stats) {
echo '3<br />';
$status='ouvert';
$showanswered=true;
$results_type='Answered Tickets';
}elseif(!$stats) { //no open or answered tickets (+-queue?) - show closed tickets.???
echo '4<br />';
$status='clos';
$results_type='Closed Tickets';
}
}
}
It never displays the "3".
Can anyone tell me where is defined $stats and what is $cfg->showAnsweredTickets()?