using a fake total - we really need to move 'fast' searching (using ids) into Roo...
authorAlan <alan@roojs.com>
Thu, 16 Feb 2023 03:55:06 +0000 (11:55 +0800)
committerAlan <alan@roojs.com>
Thu, 16 Feb 2023 03:55:06 +0000 (11:55 +0800)
Pman/Roo.php

index f161ba3..83bf522 100644 (file)
@@ -273,6 +273,9 @@ class Pman_Roo extends Pman
         if (!isset($_REQUEST['_no_count'])) {
             $total = $xx->count($this->countWhat);
         }
+        if (isset($xx->_real_total)) { // this is used when we subquery the search.
+            $total = $xx->_real_total;
+        }
         // sorting..
       //   
         // var_dump($total);exit;