diff --git a/include/form_input.php b/include/form_input.php
index eb75a37da..7bc79ab48 100644
--- a/include/form_input.php
+++ b/include/form_input.php
@@ -156,6 +156,8 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n
// input type == js_search_poste => button search for the account
if ( strtolower($p_type)=="js_search_poste") {
$l_sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID'];
+
+ if ( $p_list == null ) { // no filter
$r=sprintf('
%s
@@ -169,9 +171,25 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n
$p_value
);
-
+ } else { // $p_list is not null, so we have a filter
+ $r=sprintf('