From 121644bbec86a3e86c4442f2a9c0746b0b6d1e44 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 7 May 2007 11:53:05 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20le=20choix=20client,prospect,fournisseur?= =?UTF-8?q?=20n'=E9tait=20pas=20r=E9cup=E9r=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index e51ca29dd2f..a287be30e4e 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -272,9 +272,9 @@ if ($_POST["getcustomercode"] || $_POST["getsuppliercode"] || $soc->prenom=$_POST["prenom"]; $soc->particulier=$_REQUEST["private"]; $soc->prefix_comm=$_POST["prefix_comm"]; - $soc->client=$_POST["client"]; + $soc->client=$_POST["client"]?$_POST["client"]:$soc->client; $soc->code_client=$_POST["code_client"]; - $soc->fournisseur=$_POST["fournisseur"]; + $soc->fournisseur=$_POST["fournisseur"]?$_POST["fournisseur"]:$soc->fournisseur; $soc->code_fournisseur=$_POST["code_fournisseur"]; $soc->adresse=$_POST["adresse"]; $soc->cp=$_POST["cp"];