From e963c95a1655b7a96e9c42a3607322b0b3466952 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 7 May 2005 16:51:26 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20L'option=20de=20cr=E9ation=20des=20soci?= =?UTF-8?q?=E9t=E9s=20en=202=20=E9tapes=20ne=20fonctionnait=20pas.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 44e67fc8868..e099b7859bb 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -54,7 +54,7 @@ if (! $step) $step++; /* * Actions */ -if (($_POST["action"] == 'add' && (! defined(COMPANY_CREATE_TWO_STEPS) || $step == 2)) or $_POST["action"] == 'update') +if (($_POST["action"] == 'add' && (! defined("COMPANY_CREATE_TWO_STEPS") || $step == 2)) or $_POST["action"] == 'update') { $soc->nom = stripslashes($_POST["nom"]); $soc->adresse = stripslashes($_POST["adresse"]); @@ -190,7 +190,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') $soc->pays=$obj->libelle; } - if ($step==1 && defined(COMPANY_CREATE_TWO_STEPS)) { + if ($step==1 && defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('Country').''; $form->select_pays($soc->pays_id); print ''; @@ -200,11 +200,11 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''."\n"; } - if ($step==2 || ! defined(COMPANY_CREATE_TWO_STEPS)) { + if ($step==2 || ! defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('CustomerCode').''; - if (defined(COMPANY_CREATE_TWO_STEPS)) { + if (defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('Country').''; print $soc->pays; print ''; @@ -226,7 +226,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''.$langs->trans('Town').''; print ''.$langs->trans('State').''; - $form->select_departement($soc->departement_id,(defined(COMPANY_CREATE_TWO_STEPS)?$soc->pays_code:0)); + $form->select_departement($soc->departement_id,(defined("COMPANY_CREATE_TWO_STEPS")?$soc->pays_code:0)); print ''; print ''.$langs->trans('Phone').''; @@ -241,7 +241,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''.$langs->trans('Capital').' '.$conf->monnaie.''; print ''.$langs->trans('JuridicalStatus').''; - $form->select_forme_juridique($soc->forme_juridique_code,(defined(COMPANY_CREATE_TWO_STEPS)?$soc->pays_code:0)); + $form->select_forme_juridique($soc->forme_juridique_code,(defined("COMPANY_CREATE_TWO_STEPS")?$soc->pays_code:0)); print ''; print ''.$langs->trans("Type").''; @@ -269,7 +269,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''."\n"; print ''; - if (defined(COMPANY_CREATE_TWO_STEPS)) { + if (defined("COMPANY_CREATE_TWO_STEPS")) { print '     '; } print ''."\n";