diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index c927fe74238..971dd9ecefe 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -762,17 +762,20 @@ else
print '';
// State
- print '
| '.$langs->trans('State').' | ';
- if ($soc->pays_id)
+ if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
- $formcompany->select_departement($soc->departement_id,$soc->pays_code);
+ print ' |
| '.$langs->trans('State').' | ';
+ if ($soc->pays_id)
+ {
+ $formcompany->select_departement($soc->departement_id,$soc->pays_code);
+ }
+ else
+ {
+ print $countrynotdefined;
+ }
+ print ' |
';
}
- else
- {
- print $countrynotdefined;
- }
- print '';
-
+
// Phone / Fax
print '| '.$langs->trans('Phone').' | | ';
print ''.$langs->trans('Fax').' | |
';
@@ -1183,11 +1186,14 @@ else
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1);
print '';
- // Department
- print '| '.$langs->trans('State').' | ';
- $formcompany->select_departement($soc->departement_id,$soc->pays_code);
- print ' |
';
-
+ // State
+ if (empty($conf->global->SOCIETE_DISABLE_STATE))
+ {
+ print '| '.$langs->trans('State').' | ';
+ $formcompany->select_departement($soc->departement_id,$soc->pays_code);
+ print ' |
';
+ }
+
// Phone / Fax
print '| '.$langs->trans('Phone').' | | ';
print ''.$langs->trans('Fax').' | |
';
@@ -1424,8 +1430,8 @@ else
else print ($img?$img.' ':'').$soc->pays;
print '';
- // Department
- print '| '.$langs->trans('State').' | '.$soc->departement.' | ';
+ // State
+ if (empty($conf->global->SOCIETE_DISABLE_STATE)) print '
| '.$langs->trans('State').' | '.$soc->departement.' | ';
print '
| '.$langs->trans('Phone').' | '.dol_print_phone($soc->tel,$soc->pays_code,0,$soc->id,'AC_TEL').' | ';
print ''.$langs->trans('Fax').' | '.dol_print_phone($soc->fax,$soc->pays_code,0,$soc->id,'AC_FAX').' |
';