Skip to content
Snippets Groups Projects
Commit d62de9ad authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: regression

parent 06662875
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -1951,5 +1946,5 @@ else
$db->close(); $db->close();
llxFooter('$Date$ - $Revision$'); llxFooter('$Date: 2011/06/25 19:55:36 $ - $Revision: 1.111 $');
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment