Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15197195
D20366.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
928 B
Referenced Files
None
Subscribers
None
D20366.diff
View Options
diff --git a/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php b/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
--- a/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
+++ b/src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
@@ -136,7 +136,16 @@
$results_view->setContent($content);
}
- if ($pager->getHasMoreResults()) {
+ // TODO: A small number of queries, including "Notifications" and "Search",
+ // use an offset pager which has a slightly different API. Some day, we
+ // should unify these.
+ if ($pager instanceof PHUIPagerView) {
+ $has_more = $pager->getHasMorePages();
+ } else {
+ $has_more = $pager->getHasMoreResults();
+ }
+
+ if ($has_more) {
$item_list = $results_view->getObjectList();
$more_href = $engine->getQueryResultsPageURI($key);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 9:45 PM (10 h, 1 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7187826
Default Alt Text
D20366.diff (928 B)
Attached To
Mode
D20366: Fix rendering of offset-paged query panels including "Notifications"
Attached
Detach File
Event Timeline
Log In to Comment