Commit b697fb2cdcbe11a8f9b892d94268e381358e257b
1 parent
35190368
Exists in
master
Corrigido metodo turmasAlocado da classe Portabilis_Business_Professor, para ret…
…ornar turmas alocadas ao professor em todos os turnos.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/lib/Portabilis/Business/Professor.php
@@ -84,7 +84,7 @@ class Portabilis_Business_Professor { | @@ -84,7 +84,7 @@ class Portabilis_Business_Professor { | ||
84 | $sql = "select cod_turma as id, nm_turma as nome from pmieducar.turma where ref_ref_cod_escola = $1 | 84 | $sql = "select cod_turma as id, nm_turma as nome from pmieducar.turma where ref_ref_cod_escola = $1 |
85 | and (ref_ref_cod_serie = $2 or ref_ref_cod_serie_mult = $2) and ativo = 1 and | 85 | and (ref_ref_cod_serie = $2 or ref_ref_cod_serie_mult = $2) and ativo = 1 and |
86 | visivel != 'f' and turma_turno_id in ( select periodo from servidor_alocacao where | 86 | visivel != 'f' and turma_turno_id in ( select periodo from servidor_alocacao where |
87 | - ref_cod_escola = ref_ref_cod_escola and ref_cod_servidor = $3 and ativo = 1 limit 1) | 87 | + ref_cod_escola = ref_ref_cod_escola and ref_cod_servidor = $3 and ativo = 1) |
88 | order by nm_turma asc"; | 88 | order by nm_turma asc"; |
89 | 89 | ||
90 | return self::fetchPreparedQuery($sql, array('params' => array($escolaId, $serieId, $userId))); | 90 | return self::fetchPreparedQuery($sql, array('params' => array($escolaId, $serieId, $userId))); |