[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8579] property: reverse order of notes in email noti
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [8579] property: reverse order of notes in email notification |
Date: |
Mon, 16 Jan 2012 07:43:34 +0000 |
Revision: 8579
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8579
Author: sigurdne
Date: 2012-01-16 07:43:33 +0000 (Mon, 16 Jan 2012)
Log Message:
-----------
property: reverse order of notes in email notification
Modified Paths:
--------------
trunk/property/inc/class.botts.inc.php
Modified: trunk/property/inc/class.botts.inc.php
===================================================================
--- trunk/property/inc/class.botts.inc.php 2012-01-16 07:32:59 UTC (rev
8578)
+++ trunk/property/inc/class.botts.inc.php 2012-01-16 07:43:33 UTC (rev
8579)
@@ -943,9 +943,6 @@
{
$body .= lang('Group').': '. $group_name ."\n";
}
- $body .= lang('Opened By').': '. $ticket['user_name']
."\n\n";
- $body .= lang('First Note Added').":\n";
- $body .=
stripslashes(strip_tags($ticket['details']))."\n\n";
/**************************************************************\
* Display additional notes
*
@@ -954,7 +951,7 @@
{
$i=1;
- $history_array =
$this->historylog->return_array(array(),array('C'),'','',$id);
+ $history_array =
$this->historylog->return_array(array(),array('C'),'history_id','DESC',$id);
foreach($history_array as $value)
{
@@ -963,7 +960,7 @@
$body .=lang('Note').': '.
nl2br(stripslashes($value['new_value']))."\n\n";
$i++;
}
- $subject.= "-" .$i;
+ $subject .= "::{$i}";
}
/**************************************************************\
* Display record history
*
@@ -975,6 +972,10 @@
}
+ $body .= lang('Opened By').': '. $ticket['user_name']
."\n\n";
+ $body .= lang('First Note Added').":\n";
+ $body .=
stripslashes(strip_tags($ticket['details']))."\n\n";
+
if($get_message)
{
return array('subject' => $subject, 'body' =>
$body);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8579] property: reverse order of notes in email notification,
Sigurd Nes <=