Code comment

This commit is contained in:
Laurent Destailleur 2021-01-19 15:54:06 +01:00
parent a81b3a0d61
commit 560d401cff

View File

@ -176,7 +176,8 @@ if (empty($reshook))
if (!$error && $result > 0)
{
// Add myself as project leader
$result = $object->add_contact($user->id, 'PROJECTLEADER', 'internal');
$typeofcontact = 'PROJECTLEADER'; // TODO If use rename this code in dictionary, the add_contact will generate an error.
$result = $object->add_contact($user->id, $typeofcontact, 'internal');
if ($result < 0)
{
$langs->load("errors");