Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17849267
D15076.id36402.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
693 B
Referenced Files
None
Subscribers
None
D15076.id36402.diff
View Options
diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -381,6 +381,12 @@
$column = $orderable[$key];
$column['value'] = $value_map[$key];
+ // If the vector component is reversed, we need to reverse whatever the
+ // order of the column is.
+ if ($order->getIsReversed()) {
+ $column['reverse'] = !idx($column, 'reverse', false);
+ }
+
$columns[] = $column;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 28, 8:28 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8574120
Default Alt Text
D15076.id36402.diff (693 B)
Attached To
Mode
D15076: Fix an issue with paginating queries which reverse vector ordering components
Attached
Detach File
Event Timeline
Log In to Comment