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

index 163ed4d..b0f8f43 100644 (file)
@@ -208,6 +208,11 @@ class MTrackWeb_TicketEdit extends MTrackWeb
         }
         
         $CS->begin($this->issue, $old ? 'Changed' : 'Created');
+        if (!$old) {
+            $this->issue->created = $CS->id;
+            $this->issue->update();
+        }
+        
         $CS->add($this->issue, $old);
         
         // issue ticket... - add watches etc...