MTrackWeb/TicketEdit.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 25 Mar 2011 05:04:58 +0000 (13:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 25 Mar 2011 05:04:58 +0000 (13:04 +0800)
MTrackWeb/TicketEdit.php

index 44be73f..64db1b4 100644 (file)
@@ -195,11 +195,21 @@ class MTrackWeb_TicketEdit extends MTrackWeb
         */
         $this->issue->project_id = $this->currentProject();
         
+        
+        $CS = DB_DataObject::factory('mtrack_change');
+        
+       
+        
         if ($this->issue->id) {
             $this->issue->update($old);
         } else {
             $this->issue->insert();
+            $old = false;
         }
+        
+        $CS->begin($this->issue, empty($_POST['comment']) ? '' : $_POST['comment']);
+        $CS->add($this->issue, $old);
+        
         // issue ticket... - add watches etc... 
         
         /*