diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 442b31bc367..4266d0f745e 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -214,7 +214,7 @@ foreach ($listofreferent as $key => $value)
print '
';
print_titre($langs->trans($title));
-
+
$selectList=$formproject->select_element($tablename);
if ($selectList)
{
@@ -223,7 +223,7 @@ foreach ($listofreferent as $key => $value)
print '';
print '
';
print '';
}
diff --git a/htdocs/projet/ganttchart.php b/htdocs/projet/ganttchart.php
index c0254a4b1f8..4e34ee682a2 100644
--- a/htdocs/projet/ganttchart.php
+++ b/htdocs/projet/ganttchart.php
@@ -166,7 +166,6 @@ function constructGanttLine($tarr,$task,$project_dependencies,$level=0,$project_
}
// Add line to gantt
$s = "// Add taks id=".$task["task_id"]." level = ".$level."\n";
- //$s.= "g.AddElementItem(new JSGantt.ElementItem('task',".$task['task_id'].",'".$name."','".$start_date."', '".$end_date."', '".$task['task_color']."', '', ".$task['task_milestone'].", '".$resources."', ".$percent.", ".($task["task_is_group"]>0?1:0).", ".$parent.", 1".($depend?", ".$depend:"")."));";
$s = "g.AddTaskItem(new JSGantt.TaskItem(".$task['task_id'].",'".dol_escape_js($name)."','".$start_date."', '".$end_date."', '".$task['task_color']."', '".$link."', ".$task['task_milestone'].", '".$resources."', ".$percent.", ".($task["task_is_group"]>0?1:0).", '".$parent."', 1, '".($depend?$depend:"")."'));";
echo $s."\n";
}