diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index ea4a049581d..50f732d3d08 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -56,7 +56,7 @@ class Form { * * */ - Function select_tva($name='', $defaulttx = 0) + Function select_tva($name='', $defaulttx = '') { if (! strlen(trim($name))) { @@ -75,6 +75,11 @@ class Form { $txtva[2] = '0'; } + if ($defaulttx == '') + { + $defaulttx = $txtva[0]; + } + $taille = sizeof($txtva); print '