Commit 6ed9d3434bf55447b8028e0683ee49f7379d7ddf
1 parent
6346ef30
Exists in
master
Corrige problema ao buscar componente curricular
portabilis/ieducar#198
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/modules/Api/Views/ComponenteCurricularController.php
... | ... | @@ -47,7 +47,7 @@ class ComponenteCurricularController extends ApiCoreController |
47 | 47 | // subescreve para pesquisar %query%, e nao query% como por padrão |
48 | 48 | protected function sqlsForStringSearch() { |
49 | 49 | return "select distinct id, nome as name from modules.componente_curricular |
50 | - where lower(to_ascii(nome)) like '%'||lower(to_ascii($1))||'%' order by nome limit 15"; | |
50 | + where lower(nome) like '%'||lower($1)||'%' order by nome limit 15"; | |
51 | 51 | } |
52 | 52 | |
53 | 53 | // subscreve formatResourceValue para não adicionar 'id -' a frente do resultado | ... | ... |