regression for user type on shipment contact

This commit is contained in:
Francis Appels 2021-01-03 10:53:48 +01:00
parent ade0e008e9
commit 799927432c

View File

@ -80,7 +80,7 @@ if ($action == 'addcontact' && $user->rights->expedition->creer)
{
if ($result > 0 && $id > 0)
{
$result = $objectsrc->add_contact(GETPOST('userid') ? GETPOST('userid') : GETPOST('contactid'), $_POST["typecontact"], $_POST["source"]);
$result = $objectsrc->add_contact(GETPOST('userid') ? GETPOST('userid') : GETPOST('contactid'), GETPOST('type') ? GETPOST('type') : GETPOST('typecontact'), GETPOST('source'));
}
if ($result >= 0)