Fix: regression (multicompany)
This commit is contained in:
parent
ae6e3ad5c4
commit
a2db2c5012
@ -3791,7 +3791,7 @@ class Form
|
||||
* @param int $force_entity Possibility to force entity
|
||||
* @return void
|
||||
*/
|
||||
function select_dolgroups($selected='',$htmlname='groupid',$show_empty=0,$exclude='',$disabled=0,$include='',$enableonly='',$force_entity='')
|
||||
function select_dolgroups($selected='', $htmlname='groupid', $show_empty=0, $exclude='', $disabled=0, $include='', $enableonly='', $force_entity='')
|
||||
{
|
||||
global $conf,$user,$langs;
|
||||
|
||||
|
||||
@ -1317,7 +1317,7 @@ else
|
||||
|
||||
if (! empty($groupslist))
|
||||
{
|
||||
if( ! ($conf->multicompany->enabled && $conf->multicompany->transverse_mode))
|
||||
if (! ($conf->multicompany->enabled && $conf->multicompany->transverse_mode))
|
||||
{
|
||||
foreach($groupslist as $groupforuser)
|
||||
{
|
||||
@ -1335,7 +1335,7 @@ else
|
||||
print '<table class="noborder" width="100%">'."\n";
|
||||
print '<tr class="liste_titre"><th class="liste_titre" width="25%">'.$langs->trans("GroupsToAdd").'</th>'."\n";
|
||||
print '<th>';
|
||||
print $form->select_dolgroups('','group',1,$exclude,0,'','',$fuser->entity);
|
||||
print $form->select_dolgroups('', 'group', 1, $exclude, 0, '', '', $fuser->entity);
|
||||
print ' ';
|
||||
// Multicompany
|
||||
if (! empty($conf->multicompany->enabled))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user