Page 1 of 1

Changing the ticket list page a bit... help?

Posted: Wed Aug 15, 2012 7:09 pm
by SnortDorker
Script URL:
Version of script: 2.4
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I want to change the columns in the ticket list page to show ticket originally created "timestamp" instead of "updated", "issue"(custom3) instead of "Subject", add a column called "department"(custom2), and change "last replier" column to "owner" to show who the ticket was assigned to. I also need them to sort correctly either by time/date for the "timestamp" or alphabetically for the rest. :D Can you point me to the location of files I need to modify and maybe give me a little hint as how to best implement it myself. :D

You helped me on version 2.2 and I did it before on 2.2 but it seems not everything isn't in the same place or I didn't document it correctly. I also seemed to screw up sorting on my version of 2.2

Any help would be appreciated. I love 2.4 so far... much nicer. Oh Yeah! How do I disable the showing of the job timer, we don't charge by the hour and I don't want anybody to think they can use it for performance appraisals.

Re: Changing the ticket list page a bit... help?

Posted: Wed Aug 15, 2012 10:49 pm
by dr_patso
i wanna help!

Re: Changing the ticket list page a bit... help?

Posted: Thu Aug 16, 2012 12:40 am
by dr_patso
here's a start,

edit your /inc/ticket_list.inc.php

change line 340

Code: Select all

		<td class="$color">$ticket[lastchange]</td>
to

Code: Select all

		<td class="$color">$ticket[dt]</td>
then I think dt sorting is already implemented into /inc/prepare_ticket_search.inc.php

edit line 443 in /inc/ticket_list.inc.php

Code: Select all

<th class="admin_white" style="text-align:left; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['lastchange'] . '&sort='; ?>lastchange"><?php echo $hesklang['last_update']; ?></a></th>

change the hesklang in that th class to ['timestamp'] I think. change $sort_possible to ['dt'] probably change all instances of lastchange in the th class line to dt

Re: Changing the ticket list page a bit... help?

Posted: Thu Aug 16, 2012 12:51 am
by dr_patso
this might be enough for you to figure out the rest, although you'll have to add some kind of sort function, to the prepare_ticket_search.inc.php for your custom fields.... i'm not sure, code should be pretty similar to 2.2 do you still have the files to look at?

Re: Changing the ticket list page a bit... help?

Posted: Thu Aug 16, 2012 9:08 pm
by SnortDorker
Yes I have the old code because that is what is running the production ticket system... I just spaced on where to look and I have a messy desk because I do all tiers of helpdesk support. I can't find my old notes.

I am still having a problem changing lastreplier over to owner, it just shows the owners hesk id # instead of their name.

Re: Changing the ticket list page a bit... help?

Posted: Fri Aug 17, 2012 8:43 pm
by SnortDorker
Duh... found out what I broke... nevermind.

Re: Changing the ticket list page a bit... help?

Posted: Mon Sep 24, 2012 3:14 pm
by inkan
SnortDorker wrote:Yes I have the old code because that is what is running the production ticket system... I just spaced on where to look and I have a messy desk because I do all tiers of helpdesk support. I can't find my old notes.

I am still having a problem changing lastreplier over to owner, it just shows the owners hesk id # instead of their name.
Having the same problem, how did you solve to show the name of the owner?
I would be happy if you can share.
Thanks!

:)

Re: Changing the ticket list page a bit... help?

Posted: Mon Sep 24, 2012 5:09 pm
by steve
Try this