diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 89147086324..135b644d705 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -2587,6 +2587,7 @@ class Form
* \param option Valeur de l'option en fonction du type choisi
* \param translate Traduire la valeur
* \param maxlen Length maximum for labels
+ * \return string HTML select string
*/
function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0, $maxlen=0)
{
diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php
index fc37e6e04c0..a70fbe6d83b 100644
--- a/htdocs/html.formfile.class.php
+++ b/htdocs/html.formfile.class.php
@@ -313,14 +313,15 @@ class FormFile
{
print '
';
print $langs->trans('Model').' ';
- $html->select_array('model',$modellist,$modelselected,0,0,1);
+ print $html->selectarray('model',$modellist,$modelselected,0,0,1);
+ print ' | ';
}
else
{
print '';
print $langs->trans("Files");
+ print ' | ';
}
- print '';
print '';
if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang)
{
@@ -334,7 +335,7 @@ class FormFile
}
print ' | ';
print '';
- print '';
+ print '';
print ' | ';
}
diff --git a/htdocs/html.formother.class.php b/htdocs/html.formother.class.php
index f5bdb67d821..b717cfb914c 100644
--- a/htdocs/html.formother.class.php
+++ b/htdocs/html.formother.class.php
@@ -207,12 +207,12 @@ class FormOther
* \param increment increment value
* \param start start value
* \param end end value
- * \return return combo
+ * \return return combo
*/
function select_percent($selected=0,$htmlname='percent',$increment=5,$start=0,$end=100)
{
$return = '';
-
+
return $return;
}
@@ -241,7 +241,7 @@ class FormOther
* \param modetask 1 to restrict on tasks associated to user
* \param mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists
*/
- function selectProjectTasks($selected='', $projectid=0, $htmlname='task_parent', $modeproject=0, $modetask=0)
+ function selectProjectTasks($selected='', $projectid=0, $htmlname='task_parent', $modeproject=0, $modetask=0, $mode=0)
{
global $user, $langs;
@@ -249,7 +249,7 @@ class FormOther
//print $modeproject.'-'.$modetask;
$task=new Task($this->db);
- $tasksarray=$task->getTasksArray($modetask?$user:0, $modeproject?$user:0, $projectid);
+ $tasksarray=$task->getTasksArray($modetask?$user:0, $modeproject?$user:0, $projectid, 0, $mode);
if ($tasksarray)
{
print '