1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

fix unit test data showing up in diff view

Summary: I am an idiot. :(  D3962 added the full set of properties and I derp'ed this part of the diff up

Test Plan: ask lesliepc16 to take a look

Reviewers: epriestley, vrana

Reviewed By: vrana

CC: lesliepc16, aran, Korvin

Maniphest Tasks: T2091

Differential Revision: https://secure.phabricator.com/D3984
This commit is contained in:
Bob Trahan 2012-11-19 14:52:01 -08:00
parent b29dfe436e
commit 1578986590

View file

@ -114,20 +114,13 @@ final class DifferentialDiffViewController extends DifferentialController {
$action_panel->setProperties($dict);
$action_panel->setHeader(pht('Diff Properties'));
$arc_unit = idx($props, 'arc:unit');
if ($arc_unit) {
$test_data = array($arc_unit->getName() => $arc_unit->getData());
} else {
$test_data = array();
}
$changesets = $diff->loadChangesets();
$changesets = msort($changesets, 'getSortKey');
$table_of_contents = id(new DifferentialDiffTableOfContentsView())
->setChangesets($changesets)
->setVisibleChangesets($changesets)
->setUnitTestData($test_data);
->setUnitTestData(idx($props, 'arc:unit', array()));
$refs = array();
foreach ($changesets as $changeset) {