How to delete SUBJECT field?

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
adami
Posts: 5
Joined: Mon Jun 20, 2011 11:35 am

How to delete SUBJECT field?

Post 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
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: How to delete SUBJECT field?

Post 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';
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
adami
Posts: 5
Joined: Mon Jun 20, 2011 11:35 am

Re: How to delete SUBJECT field?

Post 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
Post Reply