diff --git a/apps/maarch_entreprise/indexing_searching/search_adv.php b/apps/maarch_entreprise/indexing_searching/search_adv.php
index 5fc3dacb3a9efa75300219bf490ac4ff8aea5902..8d6c132af249a82a6ae642b942f8b97c600a30b0 100755
--- a/apps/maarch_entreprise/indexing_searching/search_adv.php
+++ b/apps/maarch_entreprise/indexing_searching/search_adv.php
@@ -364,15 +364,6 @@ $param['signatory_group'] = $arr_tmp2;
 $arr_tmp2 = array('label' => _VISA_USER_SEARCH_MIN, 'type' => 'input_text', 'param' => array('field_label' => _VISA_USER_SEARCH_MIN, 'other' => $size, 'autocompletion' => true));
 $param['visa_user'] = $arr_tmp2;
 
-//contact_type
-//$stmt = $conn->query('SELECT id, label  FROM  contact_types order by label asc', array());
-//$arr_tmp = array();
-//while ($res = $stmt->fetchObject()) {
-//    array_push($arr_tmp, array('VALUE' => $res->id, 'LABEL' => functions::show_string($res->label)));
-//}
-//$arr_tmp2 = array('label' => _CONTACT_TYPE, 'type' => 'select_simple', 'param' => array('field_label' => _CONTACT_TYPE, 'label_title' => _CONTACT_TYPE, 'id' => 'contact_type', 'options' => $arr_tmp));
-//$param['contact_type'] = $arr_tmp2;
-
 // Sorts the param array
 function cmp($a, $b)
 {
diff --git a/apps/maarch_entreprise/indexing_searching/search_adv_result.php b/apps/maarch_entreprise/indexing_searching/search_adv_result.php
index b9848c52f4dcffa94af8fc385b3986c7f627dc84..cc0dcb932e708f365400491cd26d13eef2f4a218 100755
--- a/apps/maarch_entreprise/indexing_searching/search_adv_result.php
+++ b/apps/maarch_entreprise/indexing_searching/search_adv_result.php
@@ -220,13 +220,7 @@ if (count($_REQUEST['meta']) > 0) {
                 $where_request .= " res_id in(select identifier from ".$_SESSION['tablename']['not_notes']." where lower(note_text) LIKE lower(:noteText)) and ";
                 $arrayPDO = array_merge($arrayPDO, array(":noteText" => "%".$s_doc_notes."%"));
             }
-            // CONTACT TYPE
-//            elseif ($tab_id_fields[$j] == 'contact_type' && !empty($_REQUEST['contact_type'])) {
-//                $json_txt .= " 'contact_type' : ['".addslashes(trim($_REQUEST['contact_type']))."'],";
-//                $where_request .= " (res_id in (select res_id from contacts_res where contact_id in(select cast (contact_id as varchar) from view_contacts where contact_type = :contactType)) or ";
-//                $where_request .= " (contact_id in(select contact_id from view_contacts where contact_type = :contactType))) and ";
-//                $arrayPDO = array_merge($arrayPDO, array(":contactType" => $_REQUEST['contact_type']));
-//            }
+            // Folder
             elseif ($tab_id_fields[$j] == 'folder' && !empty($_REQUEST['folder'])) {
                 $json_txt .= " 'folder' : ['".addslashes(trim($_REQUEST['folder']))."'],";
                 $folder = $func->wash($_REQUEST['folder'], "no", _MARKET, "no");
diff --git a/apps/maarch_entreprise/js/indexing.js b/apps/maarch_entreprise/js/indexing.js
index 2f18a50a3531ca535994bc78fef938bb483c8298..a58fc7d80086885edfc2ed4f0fdeccb8b9d81c97 100755
--- a/apps/maarch_entreprise/js/indexing.js
+++ b/apps/maarch_entreprise/js/indexing.js
@@ -74,11 +74,7 @@ function initSenderRecipientAutocomplete(inputId, mode, alternateVersion, cardId
         },
         callback: {
             onClickAfter: function (node, li, item) {
-                if (item.type == "entity") {
-                    $j("#" + inputId + "_id").val(item.serialId);
-                } else {
-                    $j("#" + inputId + "_id").val(item.id);
-                }
+                $j("#" + inputId + "_id").val(item.id);
                 $j("#" + inputId + "_type").val(item.type);
 
                 if (!alternateVersion) {