fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7734] property: when ticket was opened


From: Sigurd Nes
Subject: [Fmsystem-commits] [7734] property: when ticket was opened
Date: Tue, 27 Sep 2011 11:46:29 +0000

Revision: 7734
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7734
Author:   sigurdne
Date:     2011-09-27 11:46:28 +0000 (Tue, 27 Sep 2011)
Log Message:
-----------
property: when ticket was opened

Modified Paths:
--------------
    trunk/property/inc/class.botts.inc.php
    trunk/property/inc/class.sotts.inc.php

Modified: trunk/property/inc/class.botts.inc.php
===================================================================
--- trunk/property/inc/class.botts.inc.php      2011-09-27 10:45:25 UTC (rev 
7733)
+++ trunk/property/inc/class.botts.inc.php      2011-09-27 11:46:28 UTC (rev 
7734)
@@ -511,12 +511,12 @@
                                unset($ticket['location_data']['first_name']);
                        }
 
+                       // Figure out when it was opened
 
-                       $history_values = 
$this->historylog->return_array(array(),array('O'),'history_timestamp','DESC',$id);
-                       $ticket['timestamp'] = $history_values[0]['datetime'];
-                       $ticket['entry_date'] = 
$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime'],$this->dateformat);
-                       // Figure out when it was opened and last closed
+                       $ticket['timestamp'] = $ticket['entry_date'];
+                       $ticket['entry_date'] = 
$GLOBALS['phpgw']->common->show_date($ticket['entry_date'],$this->dateformat);
 
+                       // Figure out when it was last closed
                        $history_values = 
$this->historylog->return_array(array(),array('O'),'history_timestamp','ASC',$id);
                        $ticket['last_opened'] = 
$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']);
 

Modified: trunk/property/inc/class.sotts.inc.php
===================================================================
--- trunk/property/inc/class.sotts.inc.php      2011-09-27 10:45:25 UTC (rev 
7733)
+++ trunk/property/inc/class.sotts.inc.php      2011-09-27 11:46:28 UTC (rev 
7734)
@@ -606,6 +606,7 @@
                                $ticket['publish_note']         = 
$this->db->f('publish_note');
                                $ticket['billable_hours']       = 
$this->db->f('billable_hours');
                                $ticket['branch_id']            = 
$this->db->f('branch_id');
+                               $ticket['entry_date']           = 
$this->db->f('entry_date');
                                $user_id=(int)$this->db->f('user_id');
 
                                $ticket['user_name']    = 
$GLOBALS['phpgw']->accounts->get($user_id)->__toString();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]