[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7899] property: wrap text in ticket notes
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7899] property: wrap text in ticket notes |
Date: |
Wed, 19 Oct 2011 13:29:39 +0000 |
Revision: 7899
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7899
Author: sigurdne
Date: 2011-10-19 13:29:38 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
property: wrap text in ticket notes
Modified Paths:
--------------
trunk/property/inc/class.uitts.inc.php
Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php 2011-10-19 10:42:41 UTC (rev
7898)
+++ trunk/property/inc/class.uitts.inc.php 2011-10-19 13:29:38 UTC (rev
7899)
@@ -2899,20 +2899,29 @@
$record_history = $this->bo->read_record_history($id);
$notes = array
+ (
+ array
(
- array
- (
- 'value_id' =>'',
//not from historytable
- 'value_count' => 1,
- 'value_date' =>
$GLOBALS['phpgw']->common->show_date($ticket['timestamp']),
- 'value_user' =>
$ticket['user_name'],
- 'value_note' =>
$ticket['details'],
- 'value_publish' =>
$ticket['publish_note']
- )
- );
+ 'value_id' =>'', //not
from historytable
+ 'value_count' => 1,
+ 'value_date' =>
$GLOBALS['phpgw']->common->show_date($ticket['timestamp']),
+ 'value_user' => $ticket['user_name'],
+ 'value_note' => $ticket['details'],
+ 'value_publish' =>
$ticket['publish_note']
+ )
+ );
$additional_notes =
array_merge($notes,$additional_notes);
+
if(isset($GLOBALS['phpgw_info']['user']['preferences']['common']['yui_table_nowrap'])
&& $GLOBALS['phpgw_info']['user']['preferences']['common']['yui_table_nowrap'])
+ {
+ foreach ($additional_notes as &$_note)
+ {
+ $_note['value_note'] =
wordwrap($_note['value_note'],40);
+ }
+ }
+ unset($_note);
+
if(isset($values['order_text']) && $ticket['order_id'])
{
foreach($values['order_text'] as $_text)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7899] property: wrap text in ticket notes,
Sigurd Nes <=