diff --git a/htdocs/comm/adresse_livraison.php b/htdocs/comm/adresse_livraison.php
index 24e7250f2a7..bbac58fedc0 100644
--- a/htdocs/comm/adresse_livraison.php
+++ b/htdocs/comm/adresse_livraison.php
@@ -229,9 +229,9 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
print '';
print '
| '.$langs->trans('Zip').' | use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
print '>';
- if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' ';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' ';
print ' |
';
print '| '.$langs->trans('Town').' | |
';
@@ -334,9 +334,9 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
print '';
print '| '.$langs->trans('Zip').' | use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
print '>';
- if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' ';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' ';
print ' |
';
print '| '.$langs->trans('Town').' | |
';
diff --git a/htdocs/soc.php b/htdocs/soc.php
index 07896165cfe..e4afb114f4c 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -473,9 +473,9 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
print '';
print '| '.$langs->trans('Zip').' | use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
print '>';
- if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' ';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' ';
print ' | ';
print ''.$langs->trans('Town').' | |
';
@@ -825,9 +825,9 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
print '';
print '| '.$langs->trans('Zip').' | use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' onChange="autofilltownfromzip_PopupPostalCode(cp.value,ville)"';
print '>';
- if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' ';
+ if ($conf->use_javascript_ajax && $conf->global->MAIN_AUTOFILL_TOWNFROMZIP) print ' ';
print ' | ';
print ''.$langs->trans('Town').' | |
';