Error handling for category and priority

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
hamidi
Posts: 3
Joined: Wed Feb 29, 2012 7:22 am

Error handling for category and priority

Post by hamidi »

Versi HESK: 2.4.1 - HESK is up to date
PHP version: 5.3.0
MySQL version: 5.1.37
/hesk_settings.inc.php Exists, Writable
/attachments Exists, Writable

What terms did you try when SEARCHING for a solution: error handling

Write your message below:
i want to know the way that we can have error handling for certain menu like category and priority. it will looks like "please choose category" and "please choose priority"
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Error handling for category and priority

Post by Klemen »

Not sure what you mean? If all you want is to change the error message text, you should find it inside "language/en/text.php" file, see:
http://www.hesk.com/knowledgebase/?article=34
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
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Error handling for category and priority

Post by dr_patso »

I see what you mean

throw this below you TD lines in your /admin/new_ticket.php and the user portal thing too, i'm not sure where that file is.

Code: Select all

	<td style="text-align:right" width="150"><?php echo $hesklang['category']; ?>: <font class="important">*</font></td>
	<td width="80%"><select name="category" <?php if (in_array('category',$_SESSION['iserror'])) {echo ' class="isError" ';} elseif (in_array('category',$_SESSION['isnotice'])) {echo ' class="isNotice" ';} ?> >
	<option value="">-- Please select --</option>
The line you are adding is

Code: Select all

<option value="">-- Please select --</option>
Post Reply