phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.sotts2.inc.php, 1.1.1.2


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.sotts2.inc.php, 1.1.1.2
Date: Thu, 13 May 2004 20:08:03 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.sotts2.inc.php

date: 2004/05/13 18:08:03;  author: sigurdne;  state: Exp;  lines: +11 -6

Log Message:
no message
=====================================================================
Index: property/inc/class.sotts2.inc.php
diff -u property/inc/class.sotts2.inc.php:1.1.1.1 
property/inc/class.sotts2.inc.php:1.1.1.2
--- property/inc/class.sotts2.inc.php:1.1.1.1   Fri Apr 23 13:13:57 2004
+++ property/inc/class.sotts2.inc.php   Thu May 13 18:08:03 2004
@@ -46,6 +46,7 @@
                        $old_status             = $this->db->f('status');
                        $old_billable_hours     = 
$this->db->f('billable_hours');
                        $old_billable_rate      = $this->db->f('billable_rate');
+                       $old_subject            = $this->db->f('subject');
                        if($oldcat_id ==0){$oldcat_id ='';}
                        if($oldassigned ==0){$oldassigned ='';}
                        if($oldgroup_id ==0){$oldgroup_id ='';}
@@ -174,17 +175,21 @@
                                
$this->historylog->add('B',$id,$ticket['billable_rate'],$old_billable_rate);
                        }
 
+                       if ($old_subject != $ticket['subject'])
+                       {
+                               $this->db->query("update fm_tts_tickets set 
subject='" . $ticket['subject']
+                                       . "' where id='$id'",__LINE__,__FILE__);
+                               
$this->historylog->add('S',$id,$ticket['subject'],$old_subject);
+                               $receipt['message'][]= array('msg' => 
lang('Subject has been updated'));
+                       }
+
                        if (($old_note != $ticket['note']) && $ticket['note'])
                        {
                                $fields_updated = True;
                                
$this->historylog->add('C',$id,$this->db->db_addslashes($ticket['note']),$old_note);
-                               $this->db->transaction_commit();
-                       }
-                       else
-                       {
-                               // Only do our commit once
-                               $this->db->transaction_commit();
                        }
+
+                       $this->db->transaction_commit();
 
                        if ($fields_updated)
                        {




reply via email to

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