From 7d1d187148bfb7929208d251989e73af87b53cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 30 Mar 2023 21:31:06 +0200 Subject: [PATCH] fix missing comma in sql --- htdocs/variants/list.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/variants/list.php b/htdocs/variants/list.php index a83ecf7be89..ad17c162d95 100644 --- a/htdocs/variants/list.php +++ b/htdocs/variants/list.php @@ -226,8 +226,7 @@ $morecss = array(); // Build and execute select // -------------------------------------------------------------------- -$sql = "SELECT "; -$sql .= " COUNT(DISTINCT pav.rowid) AS nb_of_values, COUNT(DISTINCT pac2v.fk_prod_combination) AS nb_products"; +$sql = "SELECT COUNT(DISTINCT pav.rowid) AS nb_of_values, COUNT(DISTINCT pac2v.fk_prod_combination) AS nb_products, "; $sql .= $object->getFieldList("t"); // Add fields from extrafields //if (!empty($extrafields->attributes[$object->table_element]['label'])) {