mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Removing reordering code that wasn't needed
Summary: Remove reordering code for package array as it's ordered in the first place Test Plan: Called API through conduit console, still works Reviewed By: epriestley Reviewers: epriestley, tuomaspelkonen CC: ju, dpepper, epriestley Blame Revision: 126 Differential Revision: 141
This commit is contained in:
parent
bff6aef87a
commit
dcb2e43960
1 changed files with 2 additions and 8 deletions
|
@ -135,15 +135,9 @@ class PhabricatorOwnersPackage extends PhabricatorOwnersDAO {
|
||||||
|
|
||||||
$packages = $package->loadAllWhere('id in (%Ld)', array_keys($order));
|
$packages = $package->loadAllWhere('id in (%Ld)', array_keys($order));
|
||||||
|
|
||||||
$result = array();
|
$packages = array_select_keys($packages, array_keys($order));
|
||||||
// Reorder packages according to specificity.
|
|
||||||
foreach ($packages as $package) {
|
|
||||||
$result[$package->getID()] = $package;
|
|
||||||
}
|
|
||||||
|
|
||||||
$result = array_select_keys($result, array_keys($order));
|
return $packages;
|
||||||
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save() {
|
public function save() {
|
||||||
|
|
Loading…
Reference in a new issue