Page MenuHomePhabricator

D11913.id29094.diff
No OneTemporary

D11913.id29094.diff

diff --git a/src/applications/feed/query/PhabricatorFeedQuery.php b/src/applications/feed/query/PhabricatorFeedQuery.php
--- a/src/applications/feed/query/PhabricatorFeedQuery.php
+++ b/src/applications/feed/query/PhabricatorFeedQuery.php
@@ -83,11 +83,11 @@
}
private function buildGroupClause(AphrontDatabaseConnection $conn_r) {
- return qsprintf(
- $conn_r,
- 'GROUP BY '.($this->filterPHIDs
- ? 'ref.chronologicalKey'
- : 'story.chronologicalKey'));
+ if ($this->filterPHIDs) {
+ return qsprintf($conn_r, 'GROUP BY ref.chronologicalKey');
+ } else {
+ return qsprintf($conn_r, 'GROUP BY story.chronologicalKey');
+ }
}
protected function getPagingColumn() {

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 4, 1:44 AM (19 h, 41 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7088314
Default Alt Text
D11913.id29094.diff (726 B)

Event Timeline