Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
  (#1) Old
GoneShootin Offline
Member
 
GoneShootin's Avatar
 
Posts: 197
Join Date: Jan 2008
Due Date for closed tickets - 22-08-2008, 09:32 AM

Before we upgraded to the latest version we were having problems with Due Dates/Times for closed tickets. So instead of farting about with settings and so on, I simply hacked

Code:
/modules/core/staff_dashboard.php
with

PHP Code:
        // Get Overdue Tickets
        
$dbCore->query("SELECT * FROM `"TABLE_PREFIX ."tickets` WHERE `departmentid` IN ("buildIN($_assigns) .") AND `ticketstatusid` IN ("buildIN(getDisplayTicketStatusList()) .") AND (`duetime` < '"DATENOW ."' AND `duetime` != 0) AND ticketstatusid <> 3;");


        
// Get Tickets Due Today
        
$dbCore->query("SELECT * FROM `"TABLE_PREFIX ."tickets` WHERE `departmentid` IN ("buildIN($_assigns) .") AND `ticketstatusid` IN ("buildIN(getDisplayTicketStatusList()) .") AND (`duetime` > '"intval($_datestart) ."' AND `duetime` < '"intval($_dateend) ."') AND ticketstatusid <> 3;"); 
By adding an extra

Code:
 AND ticketstatusid <> 3
To the end of each of the above queries I can now prevent any closed tickets being displayed "incorrectly" as due. Due tickets should never be flagged if their status is closed.
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
22-08-2008, 09:39 AM

Thanks for sharing that! I am sure many will find it useful.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
GoneShootin Offline
Member
 
GoneShootin's Avatar
 
Posts: 197
Join Date: Jan 2008
27-08-2008, 09:33 AM

Yeah it doesn't really fix the problem but it certainly hides the "incorrect" info.
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.30.01: Staff replies not clearing due date Breadcrumbs SupportSuite, eSupport and LiveResponse 13 02-09-2008 07:59 PM
Tickets -> Ability to set time and date in due time Jamie Edwards Wont Implement / Already Implemented 1 18-08-2008 10:50 PM
Due date essolinux SupportSuite, eSupport and LiveResponse 3 21-07-2008 06:44 PM
SLAs -> Do not reset due date on status change arogers@schoolp Now Implemented (V4) 12 31-01-2008 12:37 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47