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 Rate Thread Display Modes
  (#1) Old
AKL-MFCU Offline
Member
 
Posts: 146
Join Date: Feb 2006
Location: Lakeland, Florida - USA
Change due time to 0 on Close, On Hold, or other custom status - 03-06-2006, 04:34 PM

I've dug deep in the forums and finally found a hack that is compatible with the most recent versions. So here is how to do it yourself until Kayako feels that this is a good option to have coded in:
  1. Go to your supportsuite folder and go into the modules folder.
  2. Select the functions_ticketmain.php and open for editing (im using VS 2005 but i believe wordpad still provides same functionality)
  3. Do an edit->find (or quick find if using VS 2005)
  4. Search for Change (you may have to skip a few ones)
  5. locate the line that says:* Change Status for the given ticket
    */
  6. Scroll only a tiny bit down until you see the string of code that says: $this->updatesql[] = "`ticketstatusid` = '". intval($ticketstatusid) ."'";
  7. Then either copy and paste these items or edit your own using the same format but replace the obvious "Closed" or "On Hold" sections with your own created statuses. here is the hack:

if ( $_SWIFT["statuscache"][$ticketstatusid]["title"] == "Closed") //the new status
{
$this->clearDue();
}
if ( $_SWIFT["statuscache"][$ticketstatusid]["title"] == "On Hold") //the new status
{
$this->clearDue();
}

The function noted as clearDue() is a php code seen earlier in the file that clears the duetime to 0 within the sql table to that particular ticket. This is what occurs when you do a postreply.

This has been tested and works in V3.00.32 - V3.00.90 CVS
   
Reply With Quote
  (#2) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
31-05-2007, 12:04 AM

Anyone know if this is still valid in 3.10.2?

Thanks,

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#3) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
31-05-2007, 12:10 AM

Interesting, in looking at the functions_ticketmain.php, found this commented out:

// REMOVED: VARUN
// if ( $_SWIFT["statuscache"][$ticketstatusid]["ticketstatusid"] == STATUS_CLOSED)
// {
// $this->clearDue(); //clear the Due date after ticket closed.
// }

Wonder why...

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#4) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
31-05-2007, 12:45 AM

I would love to know if this still works...clearing the due time is a must.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#5) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
31-05-2007, 01:22 AM

I just tested it and it doesn't seem to work. Unless I did something wrong. Anyone else have any luck?


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#6) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
30-06-2007, 07:24 AM

No. But I did find that posting a reply (any reply) on closing a ticket (or on a closed ticket with due time still set) will clear the due time (remember to set or leave the status as closed though)

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
Reply

Tags
close, custom, hold, status

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
Due time not being re-calculated BigDawgRob SupportSuite, eSupport and LiveResponse 12 17-04-2007 10:21 AM
Merging Custom Fields in ViewTicket of Staff Mick SupportSuite, eSupport and LiveResponse 0 21-09-2006 05:48 PM
Closed, On Hold, or other status due time hack AKL-MFCU Developers & Code 0 03-06-2006 04:33 PM
How to change Setting Due Time mharr SupportSuite, eSupport and LiveResponse 2 10-05-2006 12:09 AM



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