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:
parent
31abf0dfb5
commit
c69a1aa050
1 changed files with 5 additions and 2 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue