From f7a1f18afdfc05e75bb8ad8a6f8ac95ac46f85d0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Jul 2010 18:50:36 +0000 Subject: [PATCH] Fix: Use correct order of name-firstname --- htdocs/soc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 5d4ad21da75..b05ccb785c6 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -86,7 +86,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) { $soc->particulier = $_REQUEST["private"]; - $soc->nom = $_POST["nom"].' '.$_POST["prenom"]; + $soc->nom = empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)?trim($_POST["prenom"].' '.$_POST["nom"]):trim($_POST["nom"].' '.$_POST["prenom"]); $soc->nom_particulier = $_POST["nom"]; $soc->prenom = $_POST["prenom"]; $soc->civilite_id = $_POST["civilite_id"];