1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 21:10:56 +01:00

Make differential.find work okayish

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-07 11:46:01 -08:00
parent 31abf0dfb5
commit c69a1aa050

View file

@ -57,11 +57,14 @@ class ConduitAPI_differential_find_Method extends ConduitAPIMethod {
->loadRevisions(); ->loadRevisions();
$results = array(); $results = array();
foreach ($data->getRevisions() as $revision) { foreach ($revisions as $revision) {
$diff = $revision->loadActiveDiff(); $diff = $revision->loadActiveDiff();
if (!$diff) {
continue;
}
$results[] = array( $results[] = array(
'id' => $revision->getID(), 'id' => $revision->getID(),
'name' => $revision->getName(), 'name' => $revision->getTitle(),
'statusName' => DifferentialRevisionStatus::getNameForRevisionStatus( 'statusName' => DifferentialRevisionStatus::getNameForRevisionStatus(
$revision->getStatus()), $revision->getStatus()),
'sourcePath' => $diff->getSourcePath(), 'sourcePath' => $diff->getSourcePath(),