Configuring columns in the open ticket view

Helpdesk for my helpdesk software

Moderator: mkoch227

bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Configuring columns in the open ticket view

Post by bastiaan.c »

IT WORKS !!!! :D

Thank you so much :lol:
akwil
Posts: 24
Joined: Fri May 24, 2013 10:00 am

Re: Configuring columns in the open ticket view

Post by akwil »

Klemen it works now like a charm!
You are our GOD now!

Bastian it works perfect but you need to paste it like this:
$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';
echo <<<EOC

ABOVE meens up not down:P

Greetings,
Artur
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Configuring columns in the open ticket view

Post by bastiaan.c »

Great Thanks for your help !!! :)
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Configuring columns in the open ticket view

Post by gurdain »

Klemen wrote:A working solution has been posted a few replies up.

This should also work: in inc/ticket_list.inc.php find

Code: Select all

echo <<<EOC
Just ABOVE that code add

Code: Select all

$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';
Then the $ticket[owner] variable should display the name instead of number.
Is this all that I would need to modify? Nothing seems to change.

I'm not sure how to modify what the previous solution above was...
akwil
Posts: 24
Joined: Fri May 24, 2013 10:00 am

Re: Configuring columns in the open ticket view

Post by akwil »

Dear Gurdain,

Just go to inc/ticket_list.inc.php find
Change below
Add this:
This should also work: in inc/ticket_list.inc.php find

echo <<<EOC
Just ABOVE that code add

$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';

Then the $ticket[owner] variable should display the name instead of number
After it you need to change this line (in this functionfunction hesk_print_list_head())
I wanted to have owner insted of Las replier so i change it to
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible[owner] . '&sort='; ?>owner"><?php echo $hesklang[owner]; ?></a></th>
Save the script. Refresh the website and check if it also works for you...

Greetings,
Artur
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Configuring columns in the open ticket view

Post by gurdain »

Ok I adjusted the script, however I would like to have the ticket owner show up as well as the last replier.

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

before the last replier line

But its just added the column header without adding the entire column.
So now I have Owner and underneath that it shows the last replier
The last replier column shows the flags
And the flags column is outside the text box!

Also can I change the wording of 'Owner' to "Assigned to" or something....
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Configuring columns in the open ticket view

Post by gurdain »

Ok I managed to get the full column, to show...hadn't added the owner one to the list under echo <<<EOC

Just need to figure out how to change the title now...
gurdain
Posts: 32
Joined: Thu Jul 04, 2013 11:54 am

Re: Configuring columns in the open ticket view

Post by gurdain »

Ok done...went into /language/en/text.php

changed
$hesklang['owner']='Owner';

to
$hesklang['owner']='Assigned to';
akwil
Posts: 24
Joined: Fri May 24, 2013 10:00 am

Re: Configuring columns in the open ticket view

Post by akwil »

Perfect:)

I also modified my view and rows on my admin panel were wraped.
I wanted to have ticket in one line.

To see tickets in one line read this:
viewtopic.php?f=13&t=4446
snifty
Posts: 40
Joined: Thu Aug 26, 2010 2:21 pm

Re: Configuring columns in the open ticket view

Post by snifty »

So far so good, but how do I sort by user or name?
With this modification the sorting is only done by user id and not by user name.
It would be more helpful to have the sorting alphabetically (either user or name) and not by ID.
Does anybody know how to do this?

Thanks!
Johnyb
Posts: 4
Joined: Tue Jan 21, 2014 12:18 pm

Re: Configuring columns in the open ticket view

Post by Johnyb »

gurdain wrote:Ok done...went into /language/en/text.php

changed
$hesklang['owner']='Owner';

to
$hesklang['owner']='Assigned to';
Hi, i added <td class="$color">$ticket[owner]</td> to ticket_list.inc.php . This add column which i need to ticket view .
But i need add this new column name to column header too. Can u help me ?
(no need rename, need ad column :) .....
No sort or other function need . Thx for reply .
Johny
Johnyb
Posts: 4
Joined: Tue Jan 21, 2014 12:18 pm

Re: Configuring columns in the open ticket view

Post by Johnyb »

Solved .
i add this line :

Code: Select all

<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['owner'] . '&sort='; ?>lastreplier"><?php echo $hesklang['owner']; ?></a></th>
to ticket_list.inc.php (row cca 444 ...function hesk_print_list_head() ) .
Post Reply