FIX #9432
This commit is contained in:
parent
e0dfab4c71
commit
4597cd44e5
@ -535,13 +535,14 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Links with users
|
// Links with users
|
||||||
|
if (!empty($user->rights->societe->client->voir)) {
|
||||||
$salesreps = GETPOST('commercial', 'array');
|
$salesreps = GETPOST('commercial', 'array');
|
||||||
$result = $object->setSalesRep($salesreps);
|
$result = $object->setSalesRep($salesreps);
|
||||||
if ($result < 0)
|
if ($result < 0) {
|
||||||
{
|
|
||||||
$error++;
|
$error++;
|
||||||
setEventMessages($object->error, $object->errors, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Customer categories association
|
// Customer categories association
|
||||||
$custcats = GETPOST('custcats', 'array');
|
$custcats = GETPOST('custcats', 'array');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user