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
Modify ticket search list
Moderator: mkoch227
Re: Modify ticket search list
You don't have to make any changes to the HTML, just change to
Code: Select all
if ( ! isset($what) )
{
$what = 'trackid';
}
Code: Select all
if ( ! isset($what) )
{
$what = 'name';
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Modify ticket search list
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 . '"';
} ?>>
Re: Modify ticket search list
NVM...found it at line 40. Change works as expected...brilliant.
Thanks
Thanks