From 2f25201e724a03666c7ae9ba6488f06c8af8a42b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 20 Aug 2013 10:53:17 +0000 Subject: [PATCH] implement the possibility to return multiple lines on get_message for tracking; allow transformation of --- into horizontal rule on html on get_message --- etemplate/inc/class.bo_tracking.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.bo_tracking.inc.php b/etemplate/inc/class.bo_tracking.inc.php index f78e962b19..8f8758929e 100644 --- a/etemplate/inc/class.bo_tracking.inc.php +++ b/etemplate/inc/class.bo_tracking.inc.php @@ -972,7 +972,10 @@ abstract class bo_tracking // new or modified message if (($message = $this->get_message($data,$old,$receiver))) { - $body .= $this->format_line($html_email,'message',false,$message); + foreach ((array)$message as $k => $_message) + { + $body .= $this->format_line($html_email,'message',false,($_message=='---'?($html_email?'
':$_message):$_message)); + } } if ($integrate_link && ($link = $this->get_link($data,$old,false,$receiver))) { @@ -1082,7 +1085,7 @@ abstract class bo_tracking } else { - $content .= ($content?': ':'').$data; + $content .= ($content&&$data?': ':'').$data; } if ($html_mail) $content .= '';