Here is the additional solution...
Open your \scp\tickets.php and find this code:
if(!$thisuser->isAdmin()){
$sql.=' WHERE ticket.dept_id IN('.implode(',',$thisuser->getDepts()).') OR ticket.staff_id='.db_input($thisuser->getId());
}
then replace with this following code:
/* Begin of MOD: Staff can only access the assigned tickets to him/her, by Masino Sinaga, Oct 17, 2009 */
if($thisuser->isAdmin()){
// there is no WHERE condition for Admin, he/she can see all tickets.
} elseif ($thisuser->isManager()) { // manager can access tickets belong to his/her dept.
$sql.=' WHERE (ticket.dept_id IN ('.implode(',',$depts).') )';
} else { // staff can only access the assigned tickets to him/her
$sql.=' WHERE (ticket.staff_id='.$thisuser->getId().')';
}
/* End of MOD: Staff can only access the assigned tickets to him/her, by Masino Sinaga, Oct 17, 2009 */
I have tested here, and the total of the opened tickets (Opened #) is now match with the actual total tickets on the list.
Sincerely,
Masino Sinaga