fixed free string search
This commit is contained in:
parent
9da3816a88
commit
5f0e9aac69
|
@ -666,16 +666,17 @@ class SnmpConsole extends HTML
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($filters['filter_free_search'] !== '') {
|
if ($filters['filter_free_search'] !== '') {
|
||||||
|
$free_search_str = io_safe_output($filters['filter_free_search']);
|
||||||
$whereSubquery .= '
|
$whereSubquery .= '
|
||||||
AND (source LIKE "%'.$filters['filter_free_search'].'%" OR
|
AND (source LIKE "%'.$free_search_str.'%" OR
|
||||||
oid LIKE "%'.$filters['filter_free_search'].'%" OR
|
oid LIKE "%'.$free_search_str.'%" OR
|
||||||
oid_custom LIKE "%'.$filters['filter_free_search'].'%" OR
|
oid_custom LIKE "%'.$free_search_str.'%" OR
|
||||||
type_custom LIKE "%'.$filters['filter_free_search'].'%" OR
|
type_custom LIKE "%'.$free_search_str.'%" OR
|
||||||
value LIKE "%'.$filters['filter_free_search'].'%" OR
|
value LIKE "%'.$free_search_str.'%" OR
|
||||||
value_custom LIKE "%'.$filters['filter_free_search'].'%" OR
|
value_custom LIKE "%'.$free_search_str.'%" OR
|
||||||
id_usuario LIKE "%'.$filters['filter_free_search'].'%" OR
|
id_usuario LIKE "%'.$free_search_str.'%" OR
|
||||||
text LIKE "%'.$filters['filter_free_search'].'%" OR
|
text LIKE "%'.$free_search_str.'%" OR
|
||||||
description LIKE "%'.$filters['filter_free_search'].'%")';
|
description LIKE "%'.$free_search_str.'%")';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($filters['filter_status'] != -1) {
|
if ($filters['filter_status'] != -1) {
|
||||||
|
|
Loading…
Reference in New Issue