[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11924] property: fix sms on event alert
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11924] property: fix sms on event alert |
Date: |
Mon, 28 Apr 2014 13:55:03 +0000 |
Revision: 11924
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11924
Author: sigurdne
Date: 2014-04-28 13:55:02 +0000 (Mon, 28 Apr 2014)
Log Message:
-----------
property: fix sms 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-28 13:54:19 UTC (rev
11923)
+++ trunk/property/inc/class.boevent.inc.php 2014-04-28 13:55:02 UTC (rev
11924)
@@ -542,20 +542,21 @@
{
$parts = explode('::',$data['id']);
$id = $parts[1];
- $location_arr = explode($parts[0]);
+ $location_arr = explode('.', $parts[0]);
$interlink = CreateObject('property.interlink');
- $relation_link =
$interlink->get_relation_link($location_arr[1], $id, 'view', true);
+ $relation_link =
$interlink->get_relation_link(".{$location_arr[1]}", $id, 'view', true);
$responsible_id =
isset($data['action_data']['responsible_id']) ?
$data['action_data']['responsible_id'] : 0;
if(!$responsible_id)
{
return false;
}
+
$comms =
execMethod('addressbook.boaddressbook.get_comm_contact_data',$responsible_id);
- $number = $comms[$entry['contact_id']]['mobile (cell)
phone'];
+ $number = $comms[$responsible_id]['mobile (cell)
phone'];
$subject = lang('reminder');
- $message = '<a href ="{$relation_link}">' .
lang('record').' #' .$id .'</a>'."\n";
+ $message = "<a href =\"{$relation_link}\">" .
lang('record').' #' .$id .'</a>'."\n";
$data = array
(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11924] property: fix sms on event alert,
Sigurd Nes <=