From c3b28bec853c9e550b17bfe0678b26ceb12c1b6f Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Fri, 18 Nov 2022 16:01:43 +0100 Subject: [PATCH] Revert "Use MAIN_FEATURES_LEVEL develop" This reverts commit da1bba6907b3eceb7dd50534c357b7930448fe7c. --- htdocs/product/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index a77de6b5f27..ae7be5009e1 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -595,11 +595,11 @@ $sql .= $hookmanager->resPrint; $nbtotalofrecords = ''; if (!getDolGlobalInt('MAIN_DISABLE_FULL_SCANLIST')) { - if (getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { + if (!getDolGlobalInt('MAIN_ENABLE_FAST_SCANLIST')) { $result = $db->query($sql); $nbtotalofrecords = $db->num_rows($result); } else { - /* Develop: The fast and low memory method to get and count full list converts the sql into a sql count */ + /* Experimental: The fast and low memory method to get and count full list converts the sql into a sql count */ $sqlforcount = preg_replace('/^SELECT[a-zA-Z0-9\._\s\(\),=<>\:\-\']+\sFROM/Ui', 'SELECT COUNT(*) as nbtotalofrecords FROM', $sql); $sqlforcount = preg_replace('/'.preg_quote($linktopfp, '/').'/', '', $sqlforcount); $sqlforcount = preg_replace('/GROUP BY .*$/', '', $sqlforcount);