From 9c3988da5c2903481fd637372d9845a6e7395fe1 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 14 Oct 2020 18:19:41 +0200 Subject: [PATCH] add show empty --- htdocs/product/class/html.formproduct.class.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php index 8241be3446e..eed6b9608be 100644 --- a/htdocs/product/class/html.formproduct.class.php +++ b/htdocs/product/class/html.formproduct.class.php @@ -432,9 +432,10 @@ class FormProduct * @param string $name Name of HTML field * @param string $selected Preselected value * @param int $mode 1=Use label as value, 0=Use code + * @param int $showempty 1=show empty value, 0= no * @return string */ - public function selectProductNature($name = 'finished', $selected = '', $mode = 0) + public function selectProductNature($name = 'finished', $selected = '', $mode = 0, $showempty=1) { global $langs, $db; @@ -461,11 +462,13 @@ class FormProduct return -1; } else { $return .= '