New: possibility to disabled combobox of entity in login page

This commit is contained in:
Regis Houssin 2011-05-15 18:10:08 +00:00
parent b523ab815a
commit 455e69f0d9
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
// Entity field
$select_entity='';
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY))
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY) && empty($conf->global->MULTICOMPANY_HIDE_LOGIN_COMBOBOX))
{
$rowspan++;

View File

@ -209,7 +209,7 @@ elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/dolibarr_logo.png'))
// Entity combobox
$select_entity='';
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY) && ! $disabled)
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY) && empty($conf->global->MULTICOMPANY_HIDE_LOGIN_COMBOBOX) && ! $disabled)
{
$rowspan++;
$lastuser='';