From c3579df06b0dffa217d0e571c1b8908f6c3fa42f Mon Sep 17 00:00:00 2001 From: "s.samko" Date: Wed, 6 Nov 2024 16:41:01 +0000 Subject: [PATCH] Fix #10245 - API V8 getRecords error when disable_count_query is true --- data/SugarBean.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/SugarBean.php b/data/SugarBean.php index 359e3a0743b..f3527a39432 100755 --- a/data/SugarBean.php +++ b/data/SugarBean.php @@ -4280,8 +4280,10 @@ public function process_list_query($query, $row_offset, $limit = -1, $max_per_pa } } else { if ((empty($limit) || $limit == -1)) { - $limit = $max_per_page + 1; - $max_per_page = $limit; + if ($max_per_page !== -99) { + $limit = $max_per_page + 1; + $max_per_page = $limit; + } } }