diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index f1547dffdd1..0efd87a8c16 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -769,6 +769,7 @@ class Form
$sql.= " ORDER BY p.nbvente DESC";
if ($limit) $sql.= " LIMIT $limit";
+ dolibarr_syslog("Html.for.class::select_produits_do sql=$sql");
$result=$this->db->query($sql);
if (! $result) dolibarr_print_error($this->db);