Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15391657
D21824.id52011.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
986 B
Referenced Files
None
Subscribers
None
D21824.id52011.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
@@ -369,10 +369,13 @@
$this->setLimit($limit + 1);
- if (phutil_nonempty_string($pager->getAfterID())) {
- $this->setExternalCursorString($pager->getAfterID());
- } else if ($pager->getBeforeID()) {
- $this->setExternalCursorString($pager->getBeforeID());
+ $after_id = phutil_string_cast($pager->getAfterID());
+ $before_id = phutil_string_cast($pager->getBeforeID());
+
+ if (phutil_nonempty_string($after_id)) {
+ $this->setExternalCursorString($after_id);
+ } else if (phutil_nonempty_string($before_id)) {
+ $this->setExternalCursorString($before_id);
$this->setIsQueryOrderReversed(true);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 10:53 AM (6 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7227972
Default Alt Text
D21824.id52011.diff (986 B)
Attached To
Mode
D21824: Fix an exception in cursor pagination of Conpherence threads
Attached
Detach File
Event Timeline
Log In to Comment