Commit faf2db4e5f099109a8cd6e2e55b8b6de5108e8d4
1 parent
67e5e4f4
Exists in
master
#31 No detalhe do Aluno, mostrar corretamente se o aluno utiliza ou não transporte público escolar
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
ieducar/intranet/educar_aluno_det.php
@@ -643,8 +643,8 @@ class indice extends clsDetalhe | @@ -643,8 +643,8 @@ class indice extends clsDetalhe | ||
643 | catch (Exception $e) { | 643 | catch (Exception $e) { |
644 | } | 644 | } |
645 | 645 | ||
646 | - $this->addDetalhe(array('Transporte escolar', isset($transporteAluno) ? 'Sim' : 'Não')); | ||
647 | - if ($transporteAluno) { | 646 | + $this->addDetalhe(array('Transporte escolar', isset($transporteAluno) && $transporteAluno->responsavel!='Não utiliza' ? 'Sim' : 'Não')); |
647 | + if ($transporteAluno && $transporteAluno->responsavel!='Não utiliza') { | ||
648 | $this->addDetalhe(array('Responsável transporte', $transporteAluno->responsavel)); | 648 | $this->addDetalhe(array('Responsável transporte', $transporteAluno->responsavel)); |
649 | } | 649 | } |
650 | 650 |