MTrackWeb/TicketEdit.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 06:52:57 +0000 (14:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 24 Mar 2011 06:52:57 +0000 (14:52 +0800)
MTrackWeb/TicketEdit.php

index cbb04c9..e74c68a 100644 (file)
@@ -31,11 +31,18 @@ class MTrackWeb_TicketEdit extends MTrackWeb
         if (!isset($_REQUEST['ajax_body'])) {
             return;
         }
+        
+        
         $this->masterTemplate = 'ticket_edit.html';
         $this->id = $pi ?  $pi: (isset($_GET['id']) ? $_GET['id'] : 0);
         $this->id  = $this->id  == 'new' ? 0 : $this->id;
         $this->id  = (int) $this->id;
         
+        $this->loadIssue();
+        $this->initEditForm();
+    }
+    
+    function loadIssue();
     
         // -- load issue..
 
@@ -94,7 +101,7 @@ class MTrackWeb_TicketEdit extends MTrackWeb
             return;
         }
         
-        $this->initEditForm();
+