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

Fixed localcommits include on getDiffDict

Summary: Ref T10808

Test Plan: Call `differential.querydiffs` method and expect 'local:commits' property be added to the result.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T10808

Differential Revision: https://secure.phabricator.com/D15710
This commit is contained in:
Povilas Balzaravicius Pawka 2016-04-14 17:45:39 +03:00
parent 899856a1d4
commit f05c3e41b9

View file

@ -249,7 +249,6 @@ final class DifferentialDiff
'unitStatus' => $this->getUnitStatus(), 'unitStatus' => $this->getUnitStatus(),
'lintStatus' => $this->getLintStatus(), 'lintStatus' => $this->getLintStatus(),
'changes' => array(), 'changes' => array(),
'properties' => array(),
); );
$dict['changes'] = $this->buildChangesList(); $dict['changes'] = $this->buildChangesList();
@ -258,7 +257,7 @@ final class DifferentialDiff
} }
public function getDiffAuthorshipDict() { public function getDiffAuthorshipDict() {
$dict = array(); $dict = array('properties' => array());
$properties = id(new DifferentialDiffProperty())->loadAllWhere( $properties = id(new DifferentialDiffProperty())->loadAllWhere(
'diffID = %d', 'diffID = %d',