From 1b9b78762261098f81fe6730cc23efadc7ec481c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 31 Oct 2010 19:14:28 +0000 Subject: [PATCH] Fix: zip and town was lost --- htdocs/societe/soc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 9ce021d5146..cdb5131586e 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -56,9 +56,9 @@ if (! empty($canvas)) { require_once(DOL_DOCUMENT_ROOT."/core/class/canvas.class.php"); $soccanvas = new Canvas($db); - + $soccanvas->getCanvas('thirdparty','card',$canvas); - + // Security check $result = $soccanvas->restrictedArea($user, 'societe', $socid); } @@ -1010,8 +1010,8 @@ else $soc->code_fournisseur=$_POST["code_fournisseur"]; $soc->adresse=$_POST["adresse"]; // TODO obsolete $soc->address=$_POST["adresse"]; - $soc->cp=$_POST["cp"]; - $soc->ville=$_POST["ville"]; + $soc->cp=$_POST["zipcode"]; + $soc->ville=$_POST["town"]; $soc->pays_id=$_POST["pays_id"]?$_POST["pays_id"]:$mysoc->pays_id; $soc->departement_id=$_POST["departement_id"]; $soc->tel=$_POST["tel"];