[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11917] property: fix email on event alert
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11917] property: fix email on event alert |
Date: |
Thu, 24 Apr 2014 08:31:54 +0000 |
Revision: 11917
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11917
Author: sigurdne
Date: 2014-04-24 08:31:52 +0000 (Thu, 24 Apr 2014)
Log Message:
-----------
property: fix email on event alert
Modified Paths:
--------------
trunk/property/inc/class.boevent.inc.php
Modified: trunk/property/inc/class.boevent.inc.php
===================================================================
--- trunk/property/inc/class.boevent.inc.php 2014-04-23 21:43:08 UTC (rev
11916)
+++ trunk/property/inc/class.boevent.inc.php 2014-04-24 08:31:52 UTC (rev
11917)
@@ -579,11 +579,15 @@
{
return false;
}
- $comms =
execMethod('addressbook.boaddressbook.get_comm_contact_data',$responsible_id);
- $_address = $comms[$entry['contact_id']]['work email'];
+ $account_id =
$GLOBALS['phpgw']->accounts->search_person($responsible_id);
+ $socommon = CreateObject('property.socommon');
+ $prefs =
$socommon->create_preferences('property',$account_id);
+ $comms =
execMethod('addressbook.boaddressbook.get_comm_contact_data',$responsible_id);
+ $_address = isset($comms[$responsible_id]['work
email']) && $comms[$responsible_id]['work email'] ?
$comms[$responsible_id]['work email'] :$prefs['email'];
+
$subject = lang('reminder');
- $message = '<a href ="{$relation_link}">' .
lang('record').' #' .$id .'</a>'."\n";
+ $message = "<a href =\"{$relation_link}\">" .
lang('record').' #' .$id .'</a>'."\n";
if (!is_object($GLOBALS['phpgw']->send))
{
$GLOBALS['phpgw']->send =
CreateObject('phpgwapi.send');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11917] property: fix email on event alert,
Sigurd Nes <=