Commit 83dfb7f57b1754448723a275862fb2b754688345
1 parent
ef90b39b
Exists in
2.8
and in
6 other branches
Corrige erro ao filtrar escolas do usuário
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/lib/App/Model/IedFinder.php
... | ... | @@ -104,7 +104,7 @@ class App_Model_IedFinder extends CoreExt_Entity |
104 | 104 | |
105 | 105 | if (Auth::user()->isSchooling()) { |
106 | 106 | $schools = Auth::user()->schools->pluck('cod_escola')->all(); |
107 | - $query->whereId('id', $schools); | |
107 | + $query->whereIn('cod_escola', $schools); | |
108 | 108 | } |
109 | 109 | |
110 | 110 | return $query->get()->getKeyValueArray('name'); | ... | ... |