mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Allow filter search for country and region.
This commit is contained in:
parent
2ed7628997
commit
a18d1a923c
5 changed files with 55 additions and 17 deletions
|
|
@ -119,11 +119,11 @@ function getTimestampDiffSQL(field1: string, field2: string): string {
|
|||
}
|
||||
}
|
||||
|
||||
function getSearchSQL(column: string): string {
|
||||
function getSearchSQL(column: string, param: string = 'search'): string {
|
||||
const db = getDatabaseType();
|
||||
const like = db === POSTGRESQL ? 'ilike' : 'like';
|
||||
|
||||
return `and ${column} ${like} {{search}}`;
|
||||
return `and ${column} ${like} {{${param}}`;
|
||||
}
|
||||
|
||||
function mapFilter(column: string, operator: string, name: string, type: string = '') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue