Page MenuHomePhabricator

D20366.diff
No OneTemporary

D20366.diff

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

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)

Event Timeline