Page 1 of 1

Don't send email notification of this reply to the customer

Posted: Thu Jun 27, 2013 4:27 pm
by bastiaan.c
Hi Klemen,

Thanks for your beta version of HESK.

I found the feature: Don't send email notification of this reply to the
customer

That is exactly what I was looking for.

Now my question: Which files from 2.5 do I need to replace in 2.4 in order
to get this feature running in the 2.4.2 installation???

Thanks for all you do Klemen.

Re: Don't send email notification of this reply to the custo

Posted: Thu Jun 27, 2013 4:42 pm
by bastiaan.c
Anybody that can help?

I would be gratefull for that :roll:

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 1:34 pm
by Klemen
File: admin/admin_ticket.php

Find

Code: Select all

(<a href="profile.php"><?php echo $hesklang['profile_settings']; ?></a>)
After add:

Code: Select all

<br />
    <label><input type="checkbox" name="no_notify" value="1" /> Don't send email notification of this reply to the customer</label>
File: admin/admin_reply_ticket.php

Find

Code: Select all

hesk_notifyCustomer('new_reply_by_staff');
Chage to:

Code: Select all

if ( ! isset($_POST['no_notify']) || intval( $_POST['no_notify'] ) != 1)
{
	hesk_notifyCustomer('new_reply_by_staff');
}
I didn't have a chance to test it (am out of the country), so that's up to you :wink:

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 1:52 pm
by bastiaan.c
Thanks Klemen!!!
But after I choose "Don't send email notification of this reply to the customer" and send it the page goes blank. It could be my mistake, but I think that I did exactly what you said :-(

After sending and then the blank page > and then going back to the original ticket it all seemed to work, so it is only the blank page...

Thanks for your help :D

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 2:12 pm
by Klemen
Oh, sorry, this

Code: Select all

hesk_POST('no_notify')
should say

Code: Select all

$_POST['no_notify']
The hesk_POST function isn't available before 2.5.0 hence the problem.

I will update the original reply to show correct info.

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 2:37 pm
by bastiaan.c
HIIIII !!! Klemen !!! :D :D :D :D

So happy, It works :-)

Somehow I did implement the code wrong. (I do not know what was wrong) I startet all over and did not use the latest code:

Code: Select all
hesk_POST('no_notify')

should say

Code: Select all
$_POST['no_notify']

And it works afterall!!!!

Thanks so much. Now we can allready start using it (2 months earlier as planned) Since we have this feature now we can integrate all Grapichers...thanks again :-)

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 3:02 pm
by Klemen
Before doing any modifications you may want to wait for 2.5.0, will be released this week.

Re: Don't send email notification of this reply to the custo

Posted: Mon Jul 01, 2013 3:08 pm
by bastiaan.c
Great info, Great News

Thanks,

Bas