Merge pull request #21084 from Silocan/13.0

fix for issue #16985 on v13
This commit is contained in:
Laurent Destailleur 2022-06-01 19:55:08 +02:00 committed by GitHub
commit c300437e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,8 @@ if ($action == 'addcontact' && $permissiontoedit)
if ($result > 0 && $id > 0)
{
$contactid = (GETPOST('userid') ? GETPOST('userid') : GETPOST('contactid'));
$result = $object->add_contact($contactid, $_POST["type"], $_POST["source"]);
$typeid = (GETPOST('typecontact') ? GETPOST('typecontact') : GETPOST('type'));
$result = $object->add_contact($contactid, $typeid, GETPOST("source"));
}
if ($result >= 0)