2.3 MOD see category name in admin panel

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
lupolo
Posts: 214
Joined: Mon Apr 20, 2009 2:12 pm

2.3 MOD see category name in admin panel

Post 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>
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: 2.3 MOD see category name in admin panel

Post by Lisaweb »

Thanks, this worked great! :-D
- Lisa
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: 2.3 MOD see category name in admin panel

Post 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.
- Lisa
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: 2.3 MOD see category name in admin panel

Post by Lisaweb »

Dumb me! This did work - I forgot to check "make this my default view" in the settings.
- Lisa
Nathanoj
Posts: 18
Joined: Fri Sep 23, 2011 2:15 pm

Re: 2.3 MOD see category name in admin panel

Post 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?
Nathanoj
Posts: 18
Joined: Fri Sep 23, 2011 2:15 pm

Re: 2.3 MOD see category name in admin panel

Post by Nathanoj »

Just a bump on this question... or is this capability added to 2.4?
lupolo
Posts: 214
Joined: Mon Apr 20, 2009 2:12 pm

Re: 2.3 MOD see category name in admin panel

Post by lupolo »

Nathanoj wrote:Just a bump on this question... or is this capability added to 2.4?

Yes have this working.
Post Reply