From 9ca2179c5c9b43487629d92532797d16ddf6b484 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 7 Dec 2004 16:27:28 +0000 Subject: [PATCH] =?UTF-8?q?Ne=20renvoie=20le=20code=20client=20uniquement?= =?UTF-8?q?=20dans=20le=20cas=20ou=20celui-ci=20est=20modifi=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 5788107997b..7a43c6f8221 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -60,7 +60,11 @@ if ($_POST["action"] == 'add' or $_POST["action"] == 'update') $soc->siret = $_POST["siret"]; $soc->ape = $_POST["ape"]; $soc->prefix_comm = $_POST["prefix_comm"]; - $soc->code_client = $_POST["code_client"]; + + if (strlen(trim($_POST["code_client"]))) + { + $soc->code_client = $_POST["code_client"]; + } $soc->capital = $_POST["capital"]; $soc->tva_intra = $_POST["tva_intra_code"] . $_POST["tva_intra_num"]; $soc->forme_juridique_code = $_POST["forme_juridique_code"];