Fix: Error on adding user as project contact
This commit is contained in:
parent
d09d1ab85c
commit
8d4ea5c0af
@ -86,7 +86,8 @@ if ($_POST["action"] == 'add' && $user->rights->projet->creer)
|
|||||||
$result = $project->create($user);
|
$result = $project->create($user);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$result = $project->add_contact($_POST["officer_project"], 'PROJECTLEADER', 'internal');
|
// Add myself as project leader
|
||||||
|
$result = $project->add_contact($user->id, 'PROJECTLEADER', 'internal');
|
||||||
|
|
||||||
Header("Location:fiche.php?id=".$project->id);
|
Header("Location:fiche.php?id=".$project->id);
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user