fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17026] helpdesk: email settings


From: sigurdne
Subject: [Fmsystem-commits] [17026] helpdesk: email settings
Date: Sat, 2 Sep 2017 11:01:42 -0400 (EDT)

Revision: 17026
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17026
Author:   sigurdne
Date:     2017-09-02 11:01:42 -0400 (Sat, 02 Sep 2017)
Log Message:
-----------
helpdesk: email settings

Modified Paths:
--------------
    trunk/helpdesk/inc/class.botts.inc.php

Modified: trunk/helpdesk/inc/class.botts.inc.php
===================================================================
--- trunk/helpdesk/inc/class.botts.inc.php      2017-09-01 13:36:43 UTC (rev 
17025)
+++ trunk/helpdesk/inc/class.botts.inc.php      2017-09-02 15:01:42 UTC (rev 
17026)
@@ -773,7 +773,7 @@
                        return $address_element;
                }
 
-               function mail_ticket($id, $fields_updated, $receipt = array(), 
$get_message = false)
+               function mail_ticket($id, $fields_updated, $receipt = array(), 
$get_message = false, $send_mail = false)
                {
                        //No message on assignment
                        if(!$get_message && is_array($fields_updated) && 
count($fields_updated) == 1 && in_array('assignedto', $fields_updated))
@@ -996,7 +996,7 @@
                                        && 
($GLOBALS['phpgw']->preferences->data['helpdesk']['tts_notify_me'] == 1)
                                )
                                || 
($this->config->config_data['ownernotification'] && $ticket['user_id'])
-                               || $ticket['reverse_id'])
+                               || ($ticket['user_id'] && $send_mail))
                        {
                                // add owner to recipients
                                $members[$ticket['user_id']] = 
$GLOBALS['phpgw']->accounts->id2name($ticket['user_id']);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]