Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2012, 06:55 AM
rmcgeown rmcgeown is offline
Member
 
Join Date: May 2012
Posts: 55
Default My Tickets showing closed.

I feel like im spamming the forums at the moment! Sorry!

Our staff My Tickets page shows tickets closed by that staff as well as their open. I want it to only show open.

The ticket stats count is correct though.

I had read that this is standard in 1.6...however I have added the MOD to stop showing closed tickets when there are no open.

Any help is appreciated.
Reply With Quote
  #2  
Old 07-16-2012, 11:01 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

Taken from my Reports MOD article:

This will still make the ticket show up under "My Tickets" (even when closed) in order to get it to stop doing that (if you desire), then change the following entry

from:
include/staff/tickets.inc.php

PHP Code:
$qwhere.=' AND ticket.staff_id='.db_input($staffId); 
to:
PHP Code:
$qwhere.=' AND ticket.status="open" AND ticket.staff_id='.db_input($staffId); 
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #3  
Old 07-16-2012, 11:04 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

And another portion that you'll probably come back for next

You’ll also need to change the following (otherwise it will count that you have tickets assigned but won’t list them thus confusing everyone).

scp/tickets.php
PHP Code:
'LEFT JOIN '.TICKET_TABLE.' assigned ON assigned.ticket_id=ticket.ticket_id AND assigned.staff_id='.db_input($thisuser->getId()); 
To:
PHP Code:
'LEFT JOIN '.TICKET_TABLE.' assigned ON assigned.ticket_id=ticket.ticket_id AND ticket.status=\'open\' AND assigned.staff_id='.db_input($thisuser->getId()); 
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #4  
Old 07-16-2012, 11:51 AM
rmcgeown rmcgeown is offline
Member
 
Join Date: May 2012
Posts: 55
Default

Scottro, once again, thank you!
Reply With Quote
  #5  
Old 07-16-2012, 11:58 AM
scottro's Avatar
scottro scottro is offline
Senior Member
 
Join Date: Jul 2009
Posts: 726
Default

You bet!
__________________
Sudo Bash Creations
Sudo Bash - osTicket MODs
Reply With Quote
  #6  
Old 12-07-2012, 03:59 AM
tanyad tanyad is offline
Junior Member
 
Join Date: Sep 2012
Location: Sydney, Australia
Posts: 9
Default Staff unable to see any tickets

I tried this solution and now my staff can't see any of the tickets listed.
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:16 AM.