Page 1 of 1

How to delete SUBJECT field?

Posted: Mon Oct 10, 2011 12:50 pm
by adami
Hi,

I like Hesk and never had a problem with that. However, how do I delete "Subject" field? In my case I do not need it because customer already choose their category from drop down menu. The worse is that Subject has star as MUST fill in. Thank you for help

Re: How to delete SUBJECT field?

Posted: Mon Oct 10, 2011 3:36 pm
by Klemen
From index.php delete

Code: Select all

	<tr>
	<td style="text-align:right" width="150"><?php echo $hesklang['subject']; ?>: <font class="important">*</font></td>
	<td width="80%"><input type="text" name="subject" size="40" maxlength="40" value="<?php if (isset($_SESSION['c_subject'])) {echo stripslashes(hesk_input($_SESSION['c_subject']));} ?>" <?php if (in_array('subject',$_SESSION['iserror'])) {echo ' class="isError" ';} ?> /></td>
	</tr>
In submit_ticket.php change

Code: Select all

$tmpvar['subject']  = hesk_input($_POST['subject']) or $hesk_error_buffer['subject']=$hesklang['enter_ticket_subject'];
to

Code: Select all

$tmpvar['subject']  = 'Support ticket';

Re: How to delete SUBJECT field?

Posted: Fri Dec 09, 2011 1:02 am
by adami
Thank You :)
I`m sorry for late reply to say Thanks, but I didn`t receive any info about your reply here.
I probably didn`t tick box below about notification