Page 1 of 1

2.3 MOD see category name in admin panel

Posted: Thu Sep 22, 2011 1:26 pm
by lupolo
Thank's to Klemmen, maybe someone else is looking for this piece of code ..

MOD: helpdesk/inc/ticket_list.inc.php:

around line 333 before "echo <<<EOC

Code: Select all

$ticket['category'] = $hesk_settings['categories'][$ticket['category']];
undernead line:

Code: Select all

<td class="$color" style="text-align:left; white-space:nowrap;"><input type="checkbox" name="id[]" value="$ticket[id]" />&nbsp;</td>
paste:

Code: Select all

<td class="$color">$ticket[category]</td>
undernead line:

Code: Select all

<th class="admin_white" style="width:1px"><input type="checkbox" name="checkall" value="2" onclick="hesk_changeAll()" /></th>
paste:

Code: Select all

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

Re: 2.3 MOD see category name in admin panel

Posted: Sun Sep 25, 2011 8:55 pm
by Lisaweb
Thanks, this worked great! :-D

Re: 2.3 MOD see category name in admin panel

Posted: Mon Sep 26, 2011 7:50 pm
by Lisaweb
Actually, didn't work as great as I thought... after implementation, if I wanted to view by category, every time I refreshed the page it would revert to the standard view. So I took the code out for now.

Re: 2.3 MOD see category name in admin panel

Posted: Tue Sep 27, 2011 5:14 pm
by Lisaweb
Dumb me! This did work - I forgot to check "make this my default view" in the settings.

Re: 2.3 MOD see category name in admin panel

Posted: Sat Mar 31, 2012 8:32 pm
by Nathanoj
Thank you all, this was very helpful!

I was able to get the category column to show up, but it would really be helpful to see the "owner" column. I tried messing around with the php code and even searched the SQL tables to try and figure out what the right names would be ("owner" "assignedto" "user" etc.), but couldn't get it to work.

Can someone tell me how to get the "owner" column to show up?

Re: 2.3 MOD see category name in admin panel

Posted: Tue Apr 02, 2013 10:57 pm
by Nathanoj
Just a bump on this question... or is this capability added to 2.4?

Re: 2.3 MOD see category name in admin panel

Posted: Thu Apr 04, 2013 7:12 am
by lupolo
Nathanoj wrote:Just a bump on this question... or is this capability added to 2.4?

Yes have this working.