Page 1 of 1

Remove Email Priority

Posted: Wed Mar 20, 2013 8:46 am
by Ring-A-Nerd
Script URL: http://ringanerd.co.za/Helpdesk
Version of script: 2.4.2
Hosting company: Hetzner
What terms did you try when SEARCHING for a solution: Remove Email Priority HESK

Hi there! :) I searched all over the forum and on Google, and even though I find a topic or two, it didn't quite explain what I needed to do or how to achieve it (unless I skipped a topic somehow)?

Basically all I want to do is remove the priority field from the "email" part. I seemed to find an edit, but that was for when clients make a ticket, I want to remove the priority from both the client side and the admin side (when we make tickets for clients).

How would I go about doing this? I did try looking through the script but didn't wanna mess anything up. Any and all help would be greatly appreciated! :)

Re: Remove Email Priority

Posted: Wed Mar 20, 2013 9:05 am
by Klemen
Priority selection may be disabled for customers in HESK settings.

Not sure what you mean by removing priority from emails though?

Re: Remove Email Priority

Posted: Wed Mar 20, 2013 11:45 am
by Ring-A-Nerd
Klemen wrote:Priority selection may be disabled for customers in HESK settings.

Not sure what you mean by removing priority from emails though?
Priority selection is to set the status. I apologize if I wasn't clear.

What I meant was;

When creating a new ticket, be it from the client side or staff side, I would like for the "email" field not to be required, so that only the phone number is required. As most of the time when the guys don't know the clients email they put something random in, and it's not how we want it.

That way they can skip the email field if they don't have or know it, and proceed with the rest of the form. :)

Thanks in advance!

Re: Remove Email Priority

Posted: Mon Mar 25, 2013 8:10 am
by Ring-A-Nerd
Does anyone perhaps have a fix for me? :)

Re: Remove Email Priority

Posted: Wed Mar 27, 2013 9:29 am
by Klemen
That would need some editing, but probably the easiest thing to do would be to change this code in submit_ticket.php and admin_submit_ticket.php

Code: Select all

$hesk_error_buffer['email']=$hesklang['enter_valid_email']
to

Code: Select all

$tmpvar['email']='none@given';
Then you would have to check for none@given in the mail sending function, for example in inc/email_functions just below

Code: Select all

$hesk_settings['timeformat'] = DATE_RFC2822;
add

Code: Select all

    if ($to == 'none@given')
    {
    	return true;
    }
It may need other modifications as well, but try this at first.