mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
Conpherence - fix no conpherences fatal
Summary: Fixes T3087. I guess I didn't load up the actual Conpherence UI last time I was in here with my 'noconpherences' user. :/ Test Plan: noconpherences user loaded /conpherence/ with no error Reviewers: epriestley, chad Reviewed By: chad CC: aran, Korvin Maniphest Tasks: T3087 Differential Revision: https://secure.phabricator.com/D5815
This commit is contained in:
parent
7573ad9a70
commit
bda2c5784d
1 changed files with 4 additions and 3 deletions
|
@ -228,16 +228,17 @@ final class ConpherenceListController
|
||||||
private function loadConpherenceThreadData($participation) {
|
private function loadConpherenceThreadData($participation) {
|
||||||
$user = $this->getRequest()->getUser();
|
$user = $this->getRequest()->getUser();
|
||||||
$conpherence_phids = array_keys($participation);
|
$conpherence_phids = array_keys($participation);
|
||||||
|
$conpherences = array();
|
||||||
if ($conpherence_phids) {
|
if ($conpherence_phids) {
|
||||||
$conpherences = id(new ConpherenceThreadQuery())
|
$conpherences = id(new ConpherenceThreadQuery())
|
||||||
->setViewer($user)
|
->setViewer($user)
|
||||||
->withPHIDs($conpherence_phids)
|
->withPHIDs($conpherence_phids)
|
||||||
->needParticipantCache(true)
|
->needParticipantCache(true)
|
||||||
->execute();
|
->execute();
|
||||||
}
|
|
||||||
|
|
||||||
// this will re-sort by participation data
|
// this will re-sort by participation data
|
||||||
$conpherences = array_select_keys($conpherences, $conpherence_phids);
|
$conpherences = array_select_keys($conpherences, $conpherence_phids);
|
||||||
|
}
|
||||||
|
|
||||||
return $conpherences;
|
return $conpherences;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue