$c->changelog = $bridge->getCommitMessage();
$c->changeby = $this->authUser->email; //???
$c->changeby_id = $this->authUser->id; //???
- $c->ctime = time();
+ //print_r($bridge);exit;
+ $c->ctime = isset($bridge->props['Date']) ? strtotime($bridge->props['Date']) : time();
$c->fileActions = $bridge->fileActions;
$changes[] = $c;
}
$changes = $this->_getChanges($bridge);
- print_R($changes);
+ //print_R($changes);
// Deferred by tid
}
// apply changes to tickets
+ $T = false;
foreach ($tickets as $tkt => $act) {
// 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;
}
+ break;
$T_by_tid[$T->id] = $T;
}
+
+ if (!$T) {
+ continue;
+ }
/*
$accounted = false;