From 7beff746bf02ef887de227bb7e55e0ac0e634380 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jul 2022 01:01:44 +0200 Subject: [PATCH] Fix show no record if list empty --- htdocs/product/list.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 70c5b4f3799..1464456cd6d 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -1915,6 +1915,17 @@ if ($resql) { $db->free($resql); + // If no record found + if ($num == 0) { + $colspan = 1; + foreach ($arrayfields as $key => $val) { + if (!empty($val['checked'])) { + $colspan++; + } + } + print ''.$langs->trans("NoRecordFound").''; + } + print ""; print ""; print '';