Merge pull request #15333 from atm-gauthier/11.0_fix_disabled_sales_representative

FIX : disabled users must not be available in sales representative list on societe edit mode
This commit is contained in:
Laurent Destailleur 2020-11-09 19:02:01 +01:00 committed by GitHub
commit c529a92b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2252,7 +2252,7 @@ else
print '<tr>';
print '<td>'.$form->editfieldkey('AllocateCommercial', 'commercial_id', '', $object, 0).'</td>';
print '<td colspan="3" class="maxwidthonsmartphone">';
$userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', 0, 1);
$userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, 'AND u.statut = 1', 0, '', '', 0, 1);
$arrayselected = GETPOST('commercial', 'array');
if (empty($arrayselected)) $arrayselected = $object->getSalesRepresentatives($user, 1);
print $form->multiselectarray('commercial', $userlist, $arrayselected, null, null, null, null, "90%");