mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix for issue #16985
This commit is contained in:
parent
85e2fe40b1
commit
4696cd33d5
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user