From a94cca806ebdf3fa575a53132c567fab0dac6042 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 31 Aug 2003 21:07:24 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20du=20bug=20#5011=20Dur=E9e=20du=20?= =?UTF-8?q?service=20non=20sauvegard=E9e=20lors=20de=20la=20cr=E9ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php3 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index 54db234d9f8..92d70acf4a4 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -46,6 +46,8 @@ if ($action == 'add') $product->tva_tx = $HTTP_POST_VARS["tva_tx"]; $product->type = $HTTP_POST_VARS["type"]; $product->description = $HTTP_POST_VARS["desc"]; + $product->duration_value = $HTTP_POST_VARS["duration_value"]; + $product->duration_unit = $HTTP_POST_VARS["duration_unit"]; $id = $product->create($user); $action = ''; @@ -78,7 +80,9 @@ if ($action == 'addinfacture') $mesg .= ''.$facture->ref.''; } -if ($HTTP_POST_VARS["action"] == 'update' && $cancel <> 'Annuler' && ( $user->rights->produit->modifier || $user->rights->produit->creer)) +if ($HTTP_POST_VARS["action"] == 'update' && + $cancel <> 'Annuler' && + ( $user->rights->produit->modifier || $user->rights->produit->creer)) { $product = new Product($db);