FIX Default value on sales representative on third party creation
This commit is contained in:
parent
d8d47763aa
commit
087a4400b0
@ -1382,7 +1382,8 @@ else
|
||||
print '<td>'.fieldLabel('AllocateCommercial','commercial_id').'</td>';
|
||||
print '<td colspan="3" class="maxwidthonsmartphone">';
|
||||
$userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', 0, 1);
|
||||
print $form->multiselectarray('commercial', $userlist, (count(GETPOST('commercial', 'array')) > 0?GETPOST('commercial', 'array'):(empty($user->rights->societe->client->voir)?array($user->id):array())), null, null, null, null, "90%");
|
||||
$selected = (count(GETPOST('commercial', 'array')) > 0 ? GETPOST('commercial', 'array') : (GETPOST('commercial', 'int') > 0 ? array(GETPOST('commercial', 'int')) : (empty($user->rights->societe->client->voir)?array($user->id):array())));
|
||||
print $form->multiselectarray('commercial', $userlist, $selected, null, null, null, null, "90%");
|
||||
print '</td></tr>';
|
||||
|
||||
// Incoterms
|
||||
|
||||
Loading…
Reference in New Issue
Block a user