Skip to content
Snippets Groups Projects
Commit c7c640f9 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Can't add user

parent d2b1b1a8
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,8 @@ if ($action == 'addcontact' && $user->rights->projet->creer)
if ($result > 0 && $id > 0)
{
$result = $object->add_contact($_POST["contactid"], $_POST["type"], $_POST["source"]);
$idfortaskuser=GETPOST("contactid")>0?GETPOST("contactid"):GETPOST("userid");
$result = $object->add_contact($idfortaskuser, GETPOST("type"), GETPOST("source"));
}
if ($result >= 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment