diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index d5c34fb6027..96c5061e47a 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1608,7 +1608,7 @@ if ($id > 0 || ! empty($ref))
print '
\n";
print '';
- print $html->select_type_of_lines(-1,'type',1);
+ print $html->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
if ($conf->produit->enabled && $conf->service->enabled) print ' ';
// Editor wysiwyg
@@ -1630,7 +1630,7 @@ if ($id > 0 || ! empty($ref))
$html->select_tva('np_tva_tx', $conf->defaulttx, $mysoc, $societe);
print " | \n";
print ' | ';
- print ' | ';
+ print ' | ';
print '% | ';
print ' | ';
print '
';
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 8414fb5cb55..1dcb5256ffa 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1791,7 +1791,7 @@ else
print '';
print '';
- print $html->select_type_of_lines(-1,'type',1);
+ print $html->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
if ($conf->produit->enabled && $conf->service->enabled) print ' ';
// Editor wysiwyg
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 60fe41809f2..c0113d1eab7 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -3014,7 +3014,7 @@ else
print ' |
';
print '';
- print $html->select_type_of_lines(-1,'type',1);
+ print $html->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
if (($conf->produit->enabled && $conf->service->enabled)
|| (empty($conf->produit->enabled) && empty($conf->service->enabled))) print ' ';
diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index 6aae0cfd7a1..6b21b7d123d 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -855,7 +855,7 @@ if ($id > 0 || ! empty($ref))
print ' |
';
print '';
- print $html->select_type_of_lines(-1,'type',1);
+ print $html->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
if ($conf->produit->enabled && $conf->service->enabled) print ' ';
// Editor wysiwyg
diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index 1515f331349..eab8a7d1b50 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -966,7 +966,7 @@ else
print ' |
';
print '';
- print $html->select_type_of_lines(-1,'type',1);
+ print $html->select_type_of_lines(isset($_POST["type"])?$_POST["type"]:-1,'type',1);
if (($conf->produit->enabled && $conf->service->enabled)
|| (empty($conf->produit->enabled) && empty($conf->service->enabled))) print ' ';
|