Skip to content
Snippets Groups Projects
Commit 268f9edb authored by Regis Houssin's avatar Regis Houssin
Browse files

Suppression d'un test

parent 88504e63
No related branches found
No related tags found
No related merge requests found
...@@ -2973,14 +2973,14 @@ class Form ...@@ -2973,14 +2973,14 @@ class Form
\param show_empty 1 si il faut ajouter une valeur vide dans la liste, 0 sinon \param show_empty 1 si il faut ajouter une valeur vide dans la liste, 0 sinon
\param key_in_label 1 pour afficher la key dans la valeur "[key] value" \param key_in_label 1 pour afficher la key dans la valeur "[key] value"
\param value_as_key 1 pour utiliser la valeur comme cl \param value_as_key 1 pour utiliser la valeur comme cl
\param optionType Type de l'option: 1 pour des fonctions javascript, 2 pour des tooltip, 3 les deux \param optionType Type de l'option: 1 pour des fonctions javascript
\param option Valeur de l'option en fonciton du type choisi \param option Valeur de l'option en fonction du type choisi
\param translate Traduire la valeur \param translate Traduire la valeur
*/ */
function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0) function select_array($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0)
{ {
global $langs; global $langs;
if (($optionType == 1 || $optionType == 3) && $option != '') if ($optionType == 1 && $option != '')
{ {
print '<select class="flat" name="'.$htmlname.'" '.$option.'>'; print '<select class="flat" name="'.$htmlname.'" '.$option.'>';
} }
...@@ -3008,28 +3008,14 @@ class Form ...@@ -3008,28 +3008,14 @@ class Form
if ($key_in_label) if ($key_in_label)
{ {
$selectOptionValue = $key.' - '.($translate?$langs->trans($value):$value); $selectOptionValue = $key.' - '.($translate?$langs->trans($value):$value);
if (($optionType == 2 || $optionType == 3) && $option != '')
{
print $this->textwithtooltip($selectOptionValue,$option,1);
}
else
{
print $selectOptionValue; print $selectOptionValue;
} }
}
else else
{ {
$selectOptionValue = ($translate?$langs->trans($value):$value); $selectOptionValue = ($translate?$langs->trans($value):$value);
if ($value == '' || $value == '-') { $value='&nbsp;'; } if ($value == '' || $value == '-') { $selectOptionValue='&nbsp;'; }
if (($optionType == 2 || $optionType == 3) && $option != '')
{
print $this->textwithtooltip($selectOptionValue,$option,1);
}
else
{
print $selectOptionValue; print $selectOptionValue;
} }
}
print "</option>\n"; print "</option>\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment