mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +01:00
Gestione ricerca multipla nelle tabelle datatables
This commit is contained in:
parent
89c8ceb04c
commit
8d91fa0ff9
@ -247,6 +247,8 @@ class Query
|
||||
} elseif ($end_with) {
|
||||
$value = trim(str_replace(['$'], '', $value));
|
||||
$search_filters[] = ($search_query.' LIKE '.prepare('%'.$value));
|
||||
} elseif (str_contains($value, ',')) {
|
||||
$search_filters[] = ($search_query.' IN ("'.str_replace(',', '","', $value).'")');
|
||||
} else {
|
||||
$search_filters[] = $search_query.' LIKE '.prepare('%'.$value.'%');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user