fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10507] property: ticket - check on assignedto befor


From: Sigurd Nes
Subject: [Fmsystem-commits] [10507] property: ticket - check on assignedto befor attempting til send email
Date: Fri, 16 Nov 2012 11:37:27 +0000

Revision: 10507
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10507
Author:   sigurdne
Date:     2012-11-16 11:37:26 +0000 (Fri, 16 Nov 2012)
Log Message:
-----------
property: ticket - check on assignedto befor attempting til send email

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

Modified: trunk/property/inc/class.botts.inc.php
===================================================================
--- trunk/property/inc/class.botts.inc.php      2012-11-13 11:21:43 UTC (rev 
10506)
+++ trunk/property/inc/class.botts.inc.php      2012-11-16 11:37:26 UTC (rev 
10507)
@@ -1156,17 +1156,20 @@
                                $log_recipients[] = 
$GLOBALS['phpgw']->accounts->get($ticket['user_id'])->__toString();
                        }
 
-                       
$GLOBALS['phpgw']->preferences->set_account_id($ticket['assignedto'], true);
-                       if( 
(isset($GLOBALS['phpgw']->preferences->data['property']['tts_notify_me'])
-                                       && 
($GLOBALS['phpgw']->preferences->data['property']['tts_notify_me'] == 1)
+                       if($ticket['assignedto'])
+                       {
+                               
$GLOBALS['phpgw']->preferences->set_account_id($ticket['assignedto'], true);
+                               if( 
(isset($GLOBALS['phpgw']->preferences->data['property']['tts_notify_me'])
+                                               && 
($GLOBALS['phpgw']->preferences->data['property']['tts_notify_me'] == 1)
+                                       )
+                                       || 
($this->config->config_data['assignednotification'] && $ticket['assignedto'])
+                                       || ($force_send && 
$ticket['assignedto'])
                                )
-                               || 
($this->config->config_data['assignednotification'] && $ticket['assignedto'])
-                               || ($force_send && $ticket['assignedto'])
-                       )
-                       {
-                               // add assigned to recipients
-                               $members[$ticket['assignedto']] = 
$GLOBALS['phpgw']->accounts->id2name($ticket['assignedto']);
-                               $log_recipients[] = 
$GLOBALS['phpgw']->accounts->get($ticket['assignedto'])->__toString();
+                               {
+                                       // add assigned to recipients
+                                       $members[$ticket['assignedto']] = 
$GLOBALS['phpgw']->accounts->id2name($ticket['assignedto']);
+                                       $log_recipients[] = 
$GLOBALS['phpgw']->accounts->get($ticket['assignedto'])->__toString();
+                               }
                        }
 
                        $error = array();




reply via email to

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