From ebdaf7dfa6314fe59db3ab6fe91bd7a39f71334f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?=
 <marcosgdf@gmail.com>
Date: Sun, 27 Dec 2015 15:12:02 +0100
Subject: [PATCH] FIX #3980 Search field in "product by supplier" list sends
 empty result 3.8 and 3.7

---
 htdocs/fourn/product/list.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/fourn/product/list.php b/htdocs/fourn/product/list.php
index afaf4c8e796..4aba26ec413 100644
--- a/htdocs/fourn/product/list.php
+++ b/htdocs/fourn/product/list.php
@@ -108,7 +108,7 @@ if ($sref)
 }
 if ($snom)
 {
-	$sql .= natural_search('s.nom', $snom);
+	$sql .= natural_search('p.label', $snom);
 }
 if($catid)
 {
-- 
GitLab