Page 1 of 1

Error handling for category and priority

Posted: Mon Sep 10, 2012 6:21 am
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"

Re: Error handling for category and priority

Posted: Mon Sep 10, 2012 10:08 am
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

Re: Error handling for category and priority

Posted: Fri Sep 14, 2012 7:13 pm
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>