mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Code comment
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user