From 811a0910e008363afb022e3ee37b33f2358e8086 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 2 Apr 2011 16:44:19 -0700 Subject: [PATCH] Pull handles for the standalone browse view. --- .../browse/DiffusionBrowseController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) mode change 100644 => 100755 src/applications/diffusion/controller/browse/DiffusionBrowseController.php diff --git a/src/applications/diffusion/controller/browse/DiffusionBrowseController.php b/src/applications/diffusion/controller/browse/DiffusionBrowseController.php old mode 100644 new mode 100755 index e1a1f4bfc8..f69d18da9e --- a/src/applications/diffusion/controller/browse/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/browse/DiffusionBrowseController.php @@ -87,8 +87,23 @@ class DiffusionBrowseController extends DiffusionController { $content[] = $error_view; } else { + + $phids = array(); + foreach ($results as $result) { + $data = $result->getLastCommitData(); + if ($data) { + if ($data->getCommitDetail('authorPHID')) { + $phids[$data->getCommitDetail('authorPHID')] = true; + } + } + } + $phids = array_keys($phids); + + $handles = id(new PhabricatorObjectHandleData($phids))->loadHandles(); + $browse_table = new DiffusionBrowseTableView(); $browse_table->setDiffusionRequest($drequest); + $browse_table->setHandles($handles); $browse_table->setPaths($results); $browse_panel = new AphrontPanelView();