Skip to content
Snippets Groups Projects
Commit c545d6f0 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13271 TIME 1:00 fix tu

parent 7580048e
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ class ResourceListController ...@@ -233,7 +233,7 @@ class ResourceListController
$queryData[] = "{$cleanSearch[1]}"; $queryData[] = "{$cleanSearch[1]}";
$queryData[] = "{$cleanSearch[1]}"; $queryData[] = "{$cleanSearch[1]}";
} else { } else {
$where[] = '(alt_identifier ilike ? OR unaccent(subject) ilike unaccent(?))'; $where[] = '(alt_identifier ilike ? OR unaccent(subject) ilike unaccent(?::text))';
$queryData[] = "%{$args['data']['search']}%"; $queryData[] = "%{$args['data']['search']}%";
$queryData[] = "%{$args['data']['search']}%"; $queryData[] = "%{$args['data']['search']}%";
} }
...@@ -1024,7 +1024,7 @@ class ResourceListController ...@@ -1024,7 +1024,7 @@ class ResourceListController
$where[] = 'process_limit_date < CURRENT_TIMESTAMP'; $where[] = 'process_limit_date < CURRENT_TIMESTAMP';
} }
if (!empty($data['search']) && mb_strlen($data['search']) >= 2) { if (!empty($data['search']) && mb_strlen($data['search']) >= 2) {
$where[] = '(alt_identifier ilike ? OR unaccent(subject))'; $where[] = '(alt_identifier ilike ? OR unaccent(subject) ilike unaccent(?::text))';
$queryData[] = "%{$data['search']}%"; $queryData[] = "%{$data['search']}%";
$queryData[] = "%{$data['search']}%"; $queryData[] = "%{$data['search']}%";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment