mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
Pull handles for the standalone browse view.
This commit is contained in:
parent
e4cd939734
commit
811a0910e0
1 changed files with 15 additions and 0 deletions
15
src/applications/diffusion/controller/browse/DiffusionBrowseController.php
Normal file → Executable file
15
src/applications/diffusion/controller/browse/DiffusionBrowseController.php
Normal file → Executable file
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue