1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Fix an issue with handle loads; the inner loop expects $objects to have only objects of the given type.

Auditors: btrahan
This commit is contained in:
epriestley 2013-07-21 07:03:47 -07:00
parent 7ed6996604
commit 6cdb02fc7e

View file

@ -241,13 +241,14 @@ final class PhabricatorObjectHandleData {
}
public function loadHandles() {
$objects = $this->loadObjects();
$all_objects = $this->loadObjects();
$types = phid_group_by_type($this->phids);
$handles = array();
foreach ($types as $type => $phids) {
$objects = array_select_keys($all_objects, $phids);
switch ($type) {
case PhabricatorPHIDConstants::PHID_TYPE_MAGIC: