Fix combo too heavy of information

This commit is contained in:
ldestailleur 2025-07-24 14:54:29 +02:00
parent 8ab460a4d7
commit de76f65fba

View file

@ -2213,7 +2213,7 @@ class Form
$outarray2 = array();
// Do we want to show the label of entity into the combo list ?
$showlabelofentity = isModEnabled('multicompany') && !getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') && $conf->entity == 1 && !empty($user->admin) && empty($user->entity);
$showlabelofentity = isModEnabled('multicompany') && !getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') && $conf->entity == 1 && !empty($user->admin) && empty($user->entity) && !preg_match('/^search_/', $htmlname);
$userissuperadminentityone = isModEnabled('multicompany') && $conf->entity == 1 && $user->admin && empty($user->entity);
// Forge request to select users