diff --git a/apps/maarch_entreprise/indexing_searching/search_adv_result.php b/apps/maarch_entreprise/indexing_searching/search_adv_result.php index 56b2a49c306d3982b8dce1922533e7ed3751f81f..ba164852efd24f283bb827a02810919eb1da49ac 100755 --- a/apps/maarch_entreprise/indexing_searching/search_adv_result.php +++ b/apps/maarch_entreprise/indexing_searching/search_adv_result.php @@ -218,7 +218,7 @@ if ($nbMeta > 0) { elseif ($tab_id_fields[$j] == 'doc_notes' && !empty($_REQUEST['doc_notes'])) { $json_txt .= " 'doc_notes' : ['".addslashes(trim($_REQUEST['doc_notes']))."'],"; $s_doc_notes = $func->wash($_REQUEST['doc_notes'], "no", _NOTES, "no"); - $where_request .= " res_id in(select identifier from ".$_SESSION['tablename']['not_notes']." where lower(note_text) LIKE lower(:noteText)) and "; + $where_request .= " res_id in(select identifier from notes where lower(note_text) LIKE lower(:noteText)) and "; $arrayPDO = array_merge($arrayPDO, array(":noteText" => "%".$s_doc_notes."%")); } // Folder