From b57b5e9e3884ac8e2add85fa6039665795268b45 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 May 2009 15:30:56 +0000 Subject: [PATCH] New: If missing data, other data are kept. --- htdocs/comm/propal.php | 4 ++-- htdocs/commande/fiche.php | 2 +- htdocs/compta/facture.php | 2 +- htdocs/fourn/commande/fiche.php | 2 +- htdocs/fourn/facture/fiche.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) 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 '
';