Code comment
This commit is contained in:
parent
a81b3a0d61
commit
560d401cff
@ -176,7 +176,8 @@ if (empty($reshook))
|
|||||||
if (!$error && $result > 0)
|
if (!$error && $result > 0)
|
||||||
{
|
{
|
||||||
// Add myself as project leader
|
// 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)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user