From 4e619c42fa2d5006a8a5ebc03cdf8f8db9fbaf5a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 8 Apr 2014 23:56:10 +0200 Subject: [PATCH] Fix: [ bug #1340 ] Erreur de langage dans les projets --- htdocs/projet/element.php | 4 ++-- htdocs/projet/ganttchart.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 ''; - print ''; + print ''; print '
'.$langs->trans("SelectElement").''.$selectList.'
'; 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"; }