[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.sotts2.php, 1.1.1.7
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.sotts2.php, 1.1.1.7 |
Date: |
Tue, 11 May 2004 15:32:44 +0200 |
Update of /property
Modified Files:
Branch:
class.sotts2.php
date: 2004/05/11 13:32:44; author: sigurdne; state: Exp; lines: +11 -6
Log Message:
no message
=====================================================================
Index: property/class.sotts2.php
diff -u property/class.sotts2.php:1.1.1.6 property/class.sotts2.php:1.1.1.7
--- property/class.sotts2.php:1.1.1.6 Fri Apr 30 09:52:25 2004
+++ property/class.sotts2.php Tue May 11 13:32:44 2004
@@ -47,6 +47,7 @@
$old_status = $dbresult->fields['status'];
$old_billable_hours =
$dbresult->fields['billable_hours'];
$old_billable_rate =
$dbresult->fields['billable_rate'];
+ $old_subject = $dbresult->fields['subject'];
if($oldcat_id ==0){$oldcat_id ='';}
if($oldassigned ==0){$oldassigned ='';}
if($oldgroup_id ==0){$oldgroup_id ='';}
@@ -175,17 +176,21 @@
$this->historylog->add('B',$id,$ticket['billable_rate'],$old_billable_rate);
}
+ if ($old_subject != $ticket['subject'])
+ {
+ $GLOBALS['phpgw']->db->Execute("UPDATE
fm_tts_tickets set subject='" . $ticket['subject']
+ . "' where id='$id'");
+
$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->functions->db_addslashes($ticket['note']),$old_note);
- $GLOBALS['phpgw']->db->committrans();
- }
- else
- {
- // Only do our commit once
- $GLOBALS['phpgw']->db->committrans();
}
+
+ $GLOBALS['phpgw']->db->committrans();
if ($fields_updated)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.sotts2.php, 1.1.1.7,
nomail <=