fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8943] property: check for email address


From: Sigurd Nes
Subject: [Fmsystem-commits] [8943] property: check for email address
Date: Wed, 22 Feb 2012 09:29:27 +0000

Revision: 8943
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8943
Author:   sigurdne
Date:     2012-02-22 09:29:25 +0000 (Wed, 22 Feb 2012)
Log Message:
-----------
property: check for email address

Modified Paths:
--------------
    trunk/property/inc/class.uiproject.inc.php
    trunk/property/inc/class.uiworkorder.inc.php

Modified: trunk/property/inc/class.uiproject.inc.php
===================================================================
--- trunk/property/inc/class.uiproject.inc.php  2012-02-21 12:43:47 UTC (rev 
8942)
+++ trunk/property/inc/class.uiproject.inc.php  2012-02-22 09:29:25 UTC (rev 
8943)
@@ -1256,7 +1256,10 @@
                                                                )
                                                                {
                                                                        
$prefs_coordinator = 
$this->bocommon->create_preferences('property',$values['coordinator']);
-                                                                       
$toarray[] = $prefs_coordinator['email'];
+                                                                       
if(isset($prefs_coordinator['email']) && $prefs_coordinator['email'])
+                                                                       {
+                                                                               
$toarray[] = $prefs_coordinator['email'];
+                                                                       }
                                                                }
                                                        }
                                                

Modified: trunk/property/inc/class.uiworkorder.inc.php
===================================================================
--- trunk/property/inc/class.uiworkorder.inc.php        2012-02-21 12:43:47 UTC 
(rev 8942)
+++ trunk/property/inc/class.uiworkorder.inc.php        2012-02-22 09:29:25 UTC 
(rev 8943)
@@ -1099,16 +1099,19 @@
                                                
if($this->account!=$project['coordinator'] && 
$config->config_data['workorder_approval'])
                                                {
                                                        $prefs_coordinator = 
$this->bocommon->create_preferences('property',$project['coordinator']);
-                                                       $toarray[] = 
$prefs_coordinator['email'];
+                                                       
if(isset($prefs_coordinator['email']) && $prefs_coordinator['email'])
+                                                       {
+                                                               $toarray[] = 
$prefs_coordinator['email'];
+                                                       }
                                                }
                                        }
 
-                                               $notify_list = 
execMethod('property.notify.read', array
-                                                       (
-                                                               'location_id'   
        => $location_id,
-                                                               
'location_item_id'      => $id
-                                                       )
-                                               );
+                                       $notify_list = 
execMethod('property.notify.read', array
+                                               (
+                                                       'location_id'           
=> $location_id,
+                                                       'location_item_id'      
=> $id
+                                               )
+                                       );
 
                                        $subject=lang('workorder %1 has been 
edited',$id);
                                        $sms_text = "{$subject}. 
\r\n{$GLOBALS['phpgw_info']['user']['fullname']} 
\r\n{$GLOBALS['phpgw_info']['user']['preferences']['property']['email']}";




reply via email to

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