fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10106] property: address on subject in order email


From: Sigurd Nes
Subject: [Fmsystem-commits] [10106] property: address on subject in order email
Date: Wed, 03 Oct 2012 16:22:41 +0000

Revision: 10106
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10106
Author:   sigurdne
Date:     2012-10-03 16:22:41 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
property: address on subject in order email

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

Modified: trunk/property/inc/class.uiwo_hour.inc.php
===================================================================
--- trunk/property/inc/class.uiwo_hour.inc.php  2012-10-03 14:28:48 UTC (rev 
10105)
+++ trunk/property/inc/class.uiwo_hour.inc.php  2012-10-03 16:22:41 UTC (rev 
10106)
@@ -1532,6 +1532,20 @@
 
                                $subject  = lang('Workorder').": 
".$workorder_id;
 
+                               $address_element = 
execMethod('property.botts.get_address_element', $location_code);
+                               $_address = array();
+                               foreach($address_element as $entry)
+                               {
+                                       $_address[] = "{$entry['text']}: 
{$entry['value']}";
+                               }
+                               
+                               if($_address)
+                               {
+                                       $subject .= ', ' . implode(', ', 
$_address);
+                               }
+                               unset($_address);
+                               unset($address_element);
+
                                $attachments = array();
                                $attachment_log = '';
                                if 
(isset($GLOBALS['phpgw_info']['server']['smtp_server']) && 
$GLOBALS['phpgw_info']['server']['smtp_server'])




reply via email to

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