Ticket Search strange results...

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

Ticket Search strange results...

Post by MPH2008 »

Howdi - just me again :D

I am experiencing a problem with the admin search function...
Image

When a search is submitted via 'technician name' the results will display correctly on the very first page, however, from the second results page onwards, the links will merely redirect to the base admin page, displaying only open jobs and not the jobs relevant to the technician.

Is this a known issue or an easy fix known ?

The relevant code from show_search_form.inc.php is shown below:

Code: Select all

<td valign="top" width="50%">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 360px;">
		<tr>
			<td width="7" height="7"><img src="../img/roundcornerslt.jpg" width="7" height="7" alt="" /></td>
			<td class="roundcornerstop"></td>
			<td><img src="../img/roundcornersrt.jpg" width="7" height="7" alt="" /></td>
		</tr>
		<tr>
		<td class="roundcornersleft">&nbsp;</td>
		<td valign="top">
	    <form action="find_tickets.php" method="get" name="findby" id="findby">
		<h3 align="center"><?php echo $hesklang['find_ticket_by']; ?>:</h3>
		<table border="0" cellpadding="3" cellspacing="0" width="100%">
		<tr>
		<td><label><input type="radio" name="what" value="trackid" <?php $value=''; if ($what == 'trackid') {$value = hesk_input($_GET['trackid']); echo 'checked="checked"';} ?> /> <b><?php echo $hesklang['trackID']; ?></b></label>: &nbsp; </td>
		<td><input type="text" name="trackid" value="<?php echo $value; ?>" size="12" maxlength="10" onfocus="Javascript:document.findby.what[0].checked=true;" /></td>
		</tr>
		<tr>
		<td><label><input type="radio" name="what" value="name" <?php $value=''; if ($what == 'name') {$value = hesk_input($_GET['name']); echo 'checked="checked"';} ?> /> <b><?php echo $hesklang['name']; ?></b></label>: &nbsp; </td>
		<td><select name="name">
  <option value=""></option>
  <option value="Paul Abbott">Paul Abbott</option>
  <option value="Anwar Bashir">Anwar Bashir</option>
  <option value="Adam Burns">Adam Burns</option>
  <option value="Wendy Forbes">Wendy Forbes</option>
  <option value="Paul Haslock">Paul Haslock</option>
  <option value="Matt Hunter">Matt Hunter</option>
  <option value="Martin Quennell">Martin Quennell</option>
  <option value="Jeff Shakeshaft">Jeff Shakeshaft</option>
  <option value="Sarfraz Yaqub">Sarfraz Yaqub</option>
  <option value="Neil Youngson">Neil Youngson</option>
</select></td>
		</tr>
Thanks for any assistance!
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Sorry, can't provide support for custom modifications.
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
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

Post by MPH2008 »

Extra beer money :D ?
MPH2008
Posts: 33
Joined: Thu Sep 04, 2008 12:58 pm

Post by MPH2008 »

An update...

This was actually an error in the base code (not the modifications)...
Therefore some bugs for future versions:

- In the following 6 lines located within find_tickets.php, search_tickets.php should read find_tickets.php...

Line 203, 210, 215, 229, 238, 243.

This should stop the 'Page 2, 3 4' etc from merely resetting the displayed results to the standard Admin Home Page.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You're right, this is indeed a bug in 2.0 (an error while copying and modifying code from 0.94.1 to 2.0), thanks for reporting it. The official download has been updated and this will also be included in the 2.1 (by the way - if you would like to be mentioned in the readme file for reporting the bug please PM me your name (as you want it displayed) and website URL that you want a link to).

Sorry for the not looking into it earlier, but after so many requests I get in the "can't provide support for custom modifications" mode as soon as I see modifications as I can't know what people have modified and 99% of the time the modifications are the problem.
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
Post Reply