Commit b748dd107063a28173f08e703738ea940129ec22
1 parent
204244a7
Exists in
master
Habilitado dispensa de disciplina
O sistema não estava checando corretamente a existência de enturmações, por isso nunca era habilitado o botão; portabilis/ieducar#43
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/intranet/educar_matricula_det.php
... | ... | @@ -247,7 +247,7 @@ class indice extends clsDetalhe |
247 | 247 | $this->array_botao_url_script[] = "go(\"educar_matricula_ocorrencia_disciplinar_lst.php?ref_cod_matricula={$registro['cod_matricula']}\")"; |
248 | 248 | |
249 | 249 | // Apenas libera a dispensa de disciplina quando o aluno estiver enturmado |
250 | - if ($registro['ref_ref_cod_serie'] && isset($nm_turma)) { | |
250 | + if ($registro['ref_ref_cod_serie'] && $nomesTurmas) { | |
251 | 251 | $this->array_botao[] = 'Dispensa de Componentes Curriculares'; |
252 | 252 | $this->array_botao_url_script[] = "go(\"educar_dispensa_disciplina_lst.php?ref_cod_matricula={$registro['cod_matricula']}\")"; |
253 | 253 | } | ... | ... |