Commit 3e466d2a5226763267806ca5a8b9567810e3f282
Exists in
master
Merge branch 'master' into 'master'
Corrige problema ao buscar componente curricular Referente a issue https://softwarepublico.gov.br/gitlab/i-educar/i-educar/issues/85 See merge request !49
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 | ... | ... |