Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14066347
D12507.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12507.diff
View Options
diff --git a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
--- a/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
+++ b/src/applications/conpherence/view/ConpherencePeopleWidgetView.php
@@ -9,12 +9,17 @@
$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())
@@ -25,7 +30,7 @@
'class' => 'remove',
'sigil' => 'remove-person',
'meta' => array(
- 'remove_person' => $handle->getPHID(),
+ 'remove_person' => $user_phid,
'action' => 'remove_person',
),
),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:31 AM (20 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6726066
Default Alt Text
D12507.diff (1 KB)
Attached To
Mode
D12507: Conpherence - sort participant list in a case insensitive way
Attached
Detach File
Event Timeline
Log In to Comment