Fix #5661 - MTrack - daily email large and no branch
[web.mtrack] / MTrack / CommitChecker.php
index 569379b..e1c2091 100644 (file)
@@ -196,7 +196,9 @@ class MTrack_CommitChecker {
             $c->changelog   = $bridge->getCommitMessage();
             $c->changeby    = $this->authUser->email; //???
             $c->changeby_id = $this->authUser->id; //???
-            $c->ctime       = time();
+            $c->branch       = $bridge->branch;
+            //print_r($bridge);exit;
+            $c->ctime       = isset($bridge->props['Date']) ? strtotime($bridge->props['Date']) : time();
             $c->fileActions = $bridge->fileActions;
             $changes[] = $c;
         }
@@ -224,7 +226,7 @@ class MTrack_CommitChecker {
         $changes = $this->_getChanges($bridge);
         
         
-        print_R($changes);
+        //print_R($changes);
         
 
         // Deferred by tid
@@ -269,7 +271,7 @@ class MTrack_CommitChecker {
                 // removed all the code that handles hashed ticked ids...
                 //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;
                 }