1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-23 03:59:25 +01:00

Fix Diffusion fatal with symbol highlighting

Summary: This returns a list of PHIDs, not objects which need to be pulled.

Test Plan:
Repro'd fatal locally, verified it was fixed.

Repro steps are:

  - Create an arc project associated with a repository, with indexed language(s) and subprojects.
  - View a file in that repository.

Reviewers: nh, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D3038
This commit is contained in:
epriestley 2012-07-23 12:49:43 -07:00
parent 839f3df9c2
commit c85d6d5e1b

View file

@ -220,7 +220,6 @@ final class DiffusionBrowseFileController extends DiffusionController {
continue; continue;
} }
$dep_projects = $project->getSymbolIndexProjects(); $dep_projects = $project->getSymbolIndexProjects();
$dep_projects = mpull($dep_projects, 'getPHID');
$dep_projects[] = $project->getPHID(); $dep_projects[] = $project->getPHID();
foreach ($ls as $lang) { foreach ($ls as $lang) {
if (!isset($langs[$lang])) { if (!isset($langs[$lang])) {