Fix: Error on adding user as project contact

This commit is contained in:
Laurent Destailleur 2010-02-27 23:47:05 +00:00
parent d09d1ab85c
commit 8d4ea5c0af

View File

@ -86,7 +86,8 @@ if ($_POST["action"] == 'add' && $user->rights->projet->creer)
$result = $project->create($user);
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);
exit;