Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14018189
D15589.id37577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1014 B
Referenced Files
None
Subscribers
None
D15589.id37577.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,12 +190,14 @@
->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 = array();
+ foreach ($awards as $award) {
+ $badge = $award->getBadge();
+ if ($badge->getStatus() == PhabricatorBadgesBadge::STATUS_ACTIVE) {
+ $badges[$award->getBadgePHID()] = $badge;
+ }
+ }
+
$badges = mpull($badges, null, 'getPHID');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 5:45 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6760292
Default Alt Text
D15589.id37577.diff (1014 B)
Attached To
Mode
D15589: Fixing the badges query, yet again
Attached
Detach File
Event Timeline
Log In to Comment