mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01: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:
parent
7ed6996604
commit
6cdb02fc7e
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue