Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14423763
D15589.id37578.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
D15589.id37578.diff
View Options
diff --git a/src/applications/people/controller/PhabricatorPeopleProfileViewController.php b/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
@@ -190,13 +190,13 @@
->execute();
$awards = mpull($awards, null, 'getBadgePHID');
- $badge_phids = mpull($awards, 'getBadgePHID');
- $badges = id(new PhabricatorBadgesQuery())
- ->setViewer($viewer)
- ->withPHIDs($badge_phids)
- ->withStatuses(array(PhabricatorBadgesBadge::STATUS_ACTIVE))
- ->execute();
- $badges = mpull($badges, null, 'getPHID');
+ $badges = array();
+ foreach ($awards as $award) {
+ $badge = $award->getBadge();
+ if ($badge->getStatus() == PhabricatorBadgesBadge::STATUS_ACTIVE) {
+ $badges[$award->getBadgePHID()] = $badge;
+ }
+ }
}
if (count($badges)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 9:18 AM (11 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6927614
Default Alt Text
D15589.id37578.diff (1 KB)
Attached To
Mode
D15589: Fixing the badges query, yet again
Attached
Detach File
Event Timeline
Log In to Comment