Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
index f9a61b9619..a10a9756c7 100644
--- a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
+++ b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
@@ -1,60 +1,65 @@
<?php
final class ConpherencePeopleWidgetView extends ConpherenceWidgetView {
public function render() {
$conpherence = $this->getConpherence();
$widget_data = $conpherence->getWidgetData();
$user = $this->getUser();
$conpherence = $this->getConpherence();
$participants = $conpherence->getParticipants();
$handles = $conpherence->getHandles();
- $handles = msort($handles, 'getName');
$head_handles = array_select_keys($handles, array($user->getPHID()));
+ $handle_list = mpull($handles, 'getName');
+ natcasesort($handle_list);
+ $handles = mpull($handles, null, 'getName');
+ $handles = array_select_keys($handles, $handle_list);
+ $head_handles = mpull($head_handles, null, 'getName');
$handles = $head_handles + $handles;
$body = array();
- foreach ($handles as $user_phid => $handle) {
+ foreach ($handles as $handle) {
+ $user_phid = $handle->getPHID();
$remove_html = '';
if ($user_phid == $user->getPHID()) {
$icon = id(new PHUIIconView())
->setIconFont('fa-times lightbluetext');
$remove_html = javelin_tag(
'a',
array(
'class' => 'remove',
'sigil' => 'remove-person',
'meta' => array(
- 'remove_person' => $handle->getPHID(),
+ 'remove_person' => $user_phid,
'action' => 'remove_person',
),
),
$icon);
}
$body[] = phutil_tag(
'div',
array(
'class' => 'person-entry grouped',
),
array(
phutil_tag(
'a',
array(
'class' => 'pic',
'href' => $handle->getURI(),
),
phutil_tag(
'img',
array(
'src' => $handle->getImageURI(),
),
'')),
$handle->renderLink(),
$remove_html,
));
}
return $body;
}
}

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jul 3, 6:37 PM (3 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
166181
Default Alt Text
(2 KB)

Event Timeline