SimpleDesk

SimpleDesk! => SimpleDesk Discussion => Topic started by: TwistedCat on September 23, 2014, 04:42:20 AM

Title: the current open tickets
Post by: TwistedCat on September 23, 2014, 04:42:20 AM
Hello

I have been looking for the shd_get_active_tickets() or $context['Cuuent_open_tickets'] so it would out put the number of current open tickets. If anyone would know what this might be I would be very greatful

Thanks
Title: Re: the current open tickets
Post by: venguard223 on September 23, 2014, 10:19:02 AM
It is never supposed to display the number of current open tickets. EVER.

The number it is supposed to display is the number of tickets that need response. For example, consider a helpdesk with 10 tickets, but every single one of them was last replied to by a staff member... the theory then of course is that every ticket is waiting for user response - so the number should be 0 (and thus not shown) because there's nothing for the staff to do.

It could be changed to what you're asking but frankly there is pretty much only one person who *can* do that, and that would be its original author...
Title: Re: the current open tickets
Post by: TwistedCat on September 23, 2014, 05:38:45 PM
Thanks for your reply but then my next question is how to i call that number of tickets that need a response.
Title: Re: the current open tickets
Post by: TwistedCat on September 24, 2014, 01:42:17 AM
I found it

', $context['active_tickets'] ,'
Will out put the current number of tickets that need a reply

for example usage
<span>', $context['active_tickets'] ,'</span>

I got it from this - https://github.com/SimpleDesk/SimpleDesk/blob/41dbf9e44bbee3c19d7aebf999fae0142e1d8c0b/sd_source/Subs-SimpleDesk.php#L293-L358