Commit b4902a330aa701049891b3c7f5836a8c30a3f22d
Committed by
Fabiana Ofugi
1 parent
62cc731c
Exists in
master
Enturmacao de aluno realizada no processo de matricula
Showing
1 changed file
with
5 additions
and
12 deletions
Show diff stats
ieducar/intranet/educar_matricula_cad.php
... | ... | @@ -32,7 +32,6 @@ require_once 'include/clsBase.inc.php'; |
32 | 32 | require_once 'include/clsCadastro.inc.php'; |
33 | 33 | require_once 'include/clsBanco.inc.php'; |
34 | 34 | require_once 'include/pmieducar/geral.inc.php'; |
35 | -require_once 'include/pmieducar/clsPmieducarMatriculaTurma.inc.php'; | |
36 | 35 | |
37 | 36 | /** |
38 | 37 | * clsIndexBase class. |
... | ... | @@ -259,15 +258,7 @@ class indice extends clsCadastro |
259 | 258 | if (is_array($serie) && count($serie)) |
260 | 259 | $serie = $serie['nm_serie']; |
261 | 260 | else |
262 | - $serie = ''; | |
263 | - | |
264 | -// $turma = new clsPmieducarTurma($m['ref_cod_turma'], null, null, $m['ref_ref_cod_serie'], null, null, $m['ref_cod_curso']); | |
265 | -// $turma = $turma->detalhe(); | |
266 | -// if (is_array($turma) && count($turma)) | |
267 | -// $turma = $turma['nm_turma']; | |
268 | -// else | |
269 | -// $turma = ''; | |
270 | - | |
261 | + $serie = ''; | |
271 | 262 | |
272 | 263 | $escola = new clsPmieducarEscola($m['ref_ref_cod_escola']); |
273 | 264 | $escola = $escola->detalhe(); |
... | ... | @@ -404,8 +395,10 @@ class indice extends clsCadastro |
404 | 395 | |
405 | 396 | $cadastrou = $obj->cadastra(); |
406 | 397 | |
407 | - $this->ref_cod_turma = $_POST['ref_cod_turma']; | |
408 | - $this->enturmacaoMatricula($this->cod_matricula, $this->ref_cod_turma); | |
398 | + // turma | |
399 | + $cod_matricula = $cadastrou; | |
400 | + $this->enturmacaoMatricula($cod_matricula, $this->ref_cod_turma); | |
401 | + | |
409 | 402 | if ($cadastrou) { |
410 | 403 | |
411 | 404 | $obj_transferencia = new clsPmieducarTransferenciaSolicitacao(); | ... | ... |