Commit 8e07f6a725cd5a68aa66475c27f4e95fbc7c373b
1 parent
2e32b64e
Exists in
master
Corrigido problema ao gravar componente curricular na serie/turma;
portabilis/ieducar#185
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
ieducar/modules/Avaliacao/Fixups/CleanComponentesCurriculares.php
@@ -99,8 +99,8 @@ class CleanComponentesCurriculares { | @@ -99,8 +99,8 @@ class CleanComponentesCurriculares { | ||
99 | if (is_Numeric($cod_matricula)) | 99 | if (is_Numeric($cod_matricula)) |
100 | $filtro .= " m.cod_matricula = {$cod_matricula} AND "; | 100 | $filtro .= " m.cod_matricula = {$cod_matricula} AND "; |
101 | 101 | ||
102 | - $sql = "delete from modules.nota_componente_curricular_media where nota_aluno_id||componente_curricular_id in ( | ||
103 | - select nccm.nota_aluno_id|| nccm.componente_curricular_id from modules.nota_componente_curricular_media as nccm, | 102 | + $sql = "delete from modules.nota_componente_curricular_media where nota_aluno_id::varchar||componente_curricular_id::varchar in ( |
103 | + select nccm.nota_aluno_id::varchar|| nccm.componente_curricular_id::varchar from modules.nota_componente_curricular_media as nccm, | ||
104 | modules.nota_aluno as na, | 104 | modules.nota_aluno as na, |
105 | pmieducar.matricula as m, | 105 | pmieducar.matricula as m, |
106 | pmieducar.matricula_turma as mt | 106 | pmieducar.matricula_turma as mt |
@@ -177,4 +177,4 @@ class CleanComponentesCurriculares { | @@ -177,4 +177,4 @@ class CleanComponentesCurriculares { | ||
177 | } | 177 | } |
178 | 178 | ||
179 | } | 179 | } |
180 | -?> | ||
181 | \ No newline at end of file | 180 | \ No newline at end of file |
181 | +?> |