diff --git a/htdocs/resource/class/html.formresource.class.php b/htdocs/resource/class/html.formresource.class.php index ae638787d1e..0a4d4f67425 100644 --- a/htdocs/resource/class/html.formresource.class.php +++ b/htdocs/resource/class/html.formresource.class.php @@ -109,10 +109,10 @@ class FormResource while ( $i < $num) { $resourceclass=ucfirst($resourcestat->lines[$i]->element); - + $label=$resourcestat->lines[$i]->ref?$resourcestat->lines[$i]->ref:''.$resourcestat->lines[$i]->label; if ($resourceclass != 'Dolresource') $label.=' ('.$langs->trans($resourceclass).')'; - + if ($selected > 0 && $selected == $resourcestat->lines[$i]->id) { $out.= ''; @@ -129,6 +129,7 @@ class FormResource } } $out.= ''."\n"; + $out.= ajax_combobox($htmlname); if ($outputmode != 2) {