MTrackWeb/Ticket.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 14:53:56 +0000 (22:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 14:53:56 +0000 (22:53 +0800)
MTrackWeb/Ticket.php

index 736ccfe..d4c1f21 100644 (file)
@@ -93,7 +93,7 @@ class MTrackWeb_Ticket extends MTrackWeb
         
         $this->id = empty($_POST['id']) ? 0 : $_POST['id'];
         $this->loadIssue();
-       
+        $old = clone($this->issue);
          
         //  $this->preview = isset($_POST['preview']) ? true : false;
         if (!$this->hasPerm('MTrack.Issue','E') ) {
@@ -172,7 +172,8 @@ class MTrackWeb_Ticket extends MTrackWeb
             // create a comment CS..
             
         //}
-        
+           $CS->add($old, $this->issue)
+
 
           if (!count($this->error)) {
             try {