Show Older Items is missing since update

I just realized this myself and came to post a bug report about it.

Hope they fix it fast, this is a huge feature, I wonder if it will affect SEO and indexed pages?
 
Code:
--- SearchController.php.OLD    2026-01-31 11:09:24.019393277 +0100
+++ SearchController.php    2026-01-31 11:06:31.257218063 +0100
@@ -233,7 +233,7 @@
         if (
             $search->search_order === 'date'
             && $search->result_count > $perPage
-            && $page === $maxPage
+            && $page >= $maxPage
         )
         {
             $lastResult = $resultSet->getLastResultData($lastResultType);
 
Code:
--- SearchController.php.OLD    2026-01-31 11:09:24.019393277 +0100
+++ SearchController.php    2026-01-31 11:06:31.257218063 +0100
@@ -233,7 +233,7 @@
         if (
             $search->search_order === 'date'
             && $search->result_count > $perPage
-            && $page === $maxPage
+            && $page >= $maxPage
         )
         {
             $lastResult = $resultSet->getLastResultData($lastResultType);
This code exists (===) in 2.3.7 so i'm not sure why the 2.3.8 upgrade would break it.

There must be another area that effects this?

2.3.6 is slightly different with the double ==.

Code:
$maxPage = ceil($search->result_count / $perPage);
        if ($search->search_order == 'date'
            && $search->result_count > $perPage
            && $page == $maxPage)
        {
            $lastResult = $resultSet->getLastResultData($lastResultType);
            $getOlderResultsDate = $searcher->handler($lastResultType)->getResultDate($lastResult);
        }
        else
        {
            $getOlderResultsDate = null;
        }
 
Back
Top Bottom