1
0
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:
MatteoPistorello 2024-09-03 12:45:51 +02:00
parent 89c8ceb04c
commit 8d91fa0ff9

View File

@ -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.'%');
}