1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00: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();
$results = array();
foreach ($data->getRevisions() as $revision) {
foreach ($revisions as $revision) {
$diff = $revision->loadActiveDiff();
if (!$diff) {
continue;
}
$results[] = array(
'id' => $revision->getID(),
'name' => $revision->getName(),
'name' => $revision->getTitle(),
'statusName' => DifferentialRevisionStatus::getNameForRevisionStatus(
$revision->getStatus()),
'sourcePath' => $diff->getSourcePath(),