mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +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:
parent
b29dfe436e
commit
1578986590
1 changed files with 1 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue