This commit is contained in:
Ferran Marcet 2018-09-20 17:52:44 +02:00
parent e0dfab4c71
commit 4597cd44e5

View File

@ -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');