1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-14 00:24:28 +01:00

Fix minore filtro tabelle

This commit is contained in:
pek5892 2024-06-05 13:05:06 +02:00
parent a871ae89b5
commit 1e2eefb701

View File

@ -232,11 +232,9 @@ class Query
if ($data != "'1970-01-01'") {
$search_filters[] = 'date('.$search_query.') = '.$data.'';
}
} elseif ($equal) {
} else {
$search_filters[] = ($search_query.' = '.prepare($value));
} else {
$search_filters[] = ($search_query.' = '.prepare($value).' OR '.$search_query.' LIKE '.prepare('% '.$value).' OR '.$search_query.' LIKE '.prepare($value.' %').' OR '.$search_query.' LIKE '.prepare('% '.$value.' %'));
}
}
} elseif ($notequal) {
$value = trim(str_replace(['!='], '', $value));
$search_filters[] = ($search_query.' != '.prepare($value).' AND '.$search_query.' NOT LIKE '.prepare('% '.$value).' AND '.$search_query.' NOT LIKE '.prepare($value.' %').' AND '.$search_query.' NOT LIKE '.prepare('% '.$value.' %'));