MTrack/CommitChecker.php
[web.mtrack] / MTrack / CommitChecker.php
index 57bf3d0..c4f7cda 100644 (file)
@@ -196,7 +196,8 @@ class MTrack_CommitChecker {
             $c->changelog   = $bridge->getCommitMessage();
             $c->changeby    = $this->authUser->email; //???
             $c->changeby_id = $this->authUser->id; //???
-            $c->ctime       = time();
+             
+            $c->ctime       = isset($bridge->props['Date']) ? strtotime($bridge->props['Date']) : time();
             $c->fileActions = $bridge->fileActions;
             $changes[] = $c;
         }
@@ -267,9 +268,9 @@ class MTrack_CommitChecker {
             $T = false;
             foreach ($tickets as $tkt => $act) {
                 // removed all the code that handles hashed ticked ids...
-                DB_DataObject::DebugLevel(1);
+                //DB_DataObject::DebugLevel(1);
                 $T = DB_DataObject::Factory('mtrack_ticket');
-                $T->project_id = $this->repo->id;
+                $T->project_id = $this->repo->project_id;
                 if (!$T->get($tkt)) {
                     continue;
                 }