mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Minor, fix an order issue in the token leaderboard.
Auditors: chad
This commit is contained in:
parent
022ac73d60
commit
4ffc2a1d00
1 changed files with 5 additions and 0 deletions
|
@ -22,9 +22,14 @@ final class PhabricatorTokenReceiverQuery
|
||||||
if (!$phids) {
|
if (!$phids) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$objects = id(new PhabricatorObjectHandleData($phids))
|
$objects = id(new PhabricatorObjectHandleData($phids))
|
||||||
->setViewer($this->getViewer())
|
->setViewer($this->getViewer())
|
||||||
->loadObjects();
|
->loadObjects();
|
||||||
|
|
||||||
|
// Reorder the objects in the input order.
|
||||||
|
$objects = array_select_keys($objects, $phids);
|
||||||
|
|
||||||
return $objects;
|
return $objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue