Modify ticket search list

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Modify ticket search list

Post by cwyenberg »

I'd like to move "Name" to the top of the ticket search option list since this is the way we most often look for tickets. I've modified the list order in show_search_form.inc.php. "Name" now does appear at the top of the list. However, the focus or default selection is still "Track ID" which is the second on the list and I have to scroll up to select "Name". What am I missing?

Thanks
Klemen
Site Admin
Posts: 10135
Joined: Fri Feb 11, 2005 4:04 pm

Re: Modify ticket search list

Post by Klemen »

You don't have to make any changes to the HTML, just change

Code: Select all

if ( ! isset($what) )
{
	$what = 'trackid';
}
to

Code: Select all

if ( ! isset($what) )
{
	$what = 'name';
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Modify ticket search list

Post by cwyenberg »

Perhaps I'm looking in the wrong file but I don't see this code. However, I do see the following beginning at line 396 in show_search_form.inc.php

Code: Select all

<input class="form-control" type="text" name="q" size="30" <?php if (isset($q)) {
                                            echo 'value="' . $q . '"';
                                        } ?>>
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Modify ticket search list

Post by cwyenberg »

NVM...found it at line 40. Change works as expected...brilliant.

Thanks
Post Reply