FIX #9432
This commit is contained in:
parent
4597cd44e5
commit
1a7b38f22a
@ -535,13 +535,12 @@ if (empty($reshook))
|
||||
}
|
||||
|
||||
// Links with users
|
||||
if (!empty($user->rights->societe->client->voir)) {
|
||||
$salesreps = GETPOST('commercial', 'array');
|
||||
$result = $object->setSalesRep($salesreps);
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
}
|
||||
$salesreps = GETPOST('commercial', 'array');
|
||||
$result = $object->setSalesRep($salesreps);
|
||||
if ($result < 0)
|
||||
{
|
||||
$error++;
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
}
|
||||
|
||||
// Customer categories association
|
||||
@ -1378,16 +1377,13 @@ else
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
if ($user->rights->societe->client->voir)
|
||||
{
|
||||
// Assign a Name
|
||||
print '<tr>';
|
||||
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, GETPOST('commercial', 'array'), null, null, null, null, "90%");
|
||||
print '</td></tr>';
|
||||
}
|
||||
// Assign a Name
|
||||
print '<tr>';
|
||||
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'):array($user->id)), null, null, null, null, "90%");
|
||||
print '</td></tr>';
|
||||
|
||||
// Incoterms
|
||||
if (!empty($conf->incoterm->enabled))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user