Fix: regression

This commit is contained in:
Laurent Destailleur 2011-06-25 19:55:36 +00:00
parent 066628754c
commit d62de9ad34

View File

@ -26,7 +26,7 @@
* \file htdocs/societe/soc.php * \file htdocs/societe/soc.php
* \ingroup societe * \ingroup societe
* \brief Third party card page * \brief Third party card page
* \version $Id$ * \version $Id: soc.php,v 1.111 2011/06/25 19:55:36 eldy Exp $
*/ */
require("../main.inc.php"); require("../main.inc.php");
@ -1058,14 +1058,9 @@ else
$prefixSupplierIsUsed = $modCodeFournisseur->verif_prefixIsUsed(); $prefixSupplierIsUsed = $modCodeFournisseur->verif_prefixIsUsed();
} }
// if (! $_POST["nom"]) if (! empty($_POST["nom"]))
// { {
// $soc->fetch($socid); // We overwrite with values if posted
// $soc->fetch_optionals($socid,$extralabels);
// }
// else
// {
// $soc->id=$_POST["socid"];
$soc->nom=$_POST["nom"]; $soc->nom=$_POST["nom"];
$soc->prefix_comm=$_POST["prefix_comm"]; $soc->prefix_comm=$_POST["prefix_comm"];
$soc->client=$_POST["client"]; $soc->client=$_POST["client"];
@ -1117,7 +1112,7 @@ else
$soc->pays_code=$obj->code; $soc->pays_code=$obj->code;
$soc->pays=$langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->libelle; $soc->pays=$langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->libelle;
} }
// } }
dol_htmloutput_errors($error,$errors); dol_htmloutput_errors($error,$errors);
@ -1951,5 +1946,5 @@ else
$db->close(); $db->close();
llxFooter('$Date$ - $Revision$'); llxFooter('$Date: 2011/06/25 19:55:36 $ - $Revision: 1.111 $');
?> ?>