Commit 7e9428a2db3367f7426acdd6340ae37e78a71284
1 parent
d7c57e88
Exists in
2.9
and in
7 other branches
Executa alterações somente após a validação
Showing
1 changed file
with
13 additions
and
13 deletions
Show diff stats
ieducar/intranet/educar_escola_serie_cad.php
... | ... | @@ -537,19 +537,6 @@ class indice extends clsCadastro |
537 | 537 | $this->anos_letivos ?: [] |
538 | 538 | ); |
539 | 539 | |
540 | - $detalheAntigo = $obj->detalhe(); | |
541 | - $editou = $obj->edita(); | |
542 | - | |
543 | - $auditoria = new clsModulesAuditoriaGeral("escola_serie", $this->pessoa_logada); | |
544 | - $auditoria->alteracao($detalheAntigo, $obj->detalhe()); | |
545 | - | |
546 | - $obj = new clsPmieducarEscolaSerieDisciplina( | |
547 | - $this->ref_cod_serie, | |
548 | - $this->ref_cod_escola, | |
549 | - $campo, | |
550 | - 1 | |
551 | - ); | |
552 | - | |
553 | 540 | $sombra = json_decode(urldecode($this->componentes_sombra), true); |
554 | 541 | $disciplinas = $this->montaDisciplinas(); |
555 | 542 | $analise = $this->analisaAlteracoes($sombra, $disciplinas); |
... | ... | @@ -564,6 +551,19 @@ class indice extends clsCadastro |
564 | 551 | return false; |
565 | 552 | } |
566 | 553 | |
554 | + $detalheAntigo = $obj->detalhe(); | |
555 | + $editou = $obj->edita(); | |
556 | + | |
557 | + $auditoria = new clsModulesAuditoriaGeral("escola_serie", $this->pessoa_logada); | |
558 | + $auditoria->alteracao($detalheAntigo, $obj->detalhe()); | |
559 | + | |
560 | + $obj = new clsPmieducarEscolaSerieDisciplina( | |
561 | + $this->ref_cod_serie, | |
562 | + $this->ref_cod_escola, | |
563 | + $campo, | |
564 | + 1 | |
565 | + ); | |
566 | + | |
567 | 567 | $obj->excluirNaoSelecionados($this->disciplinas); |
568 | 568 | |
569 | 569 | if ($editou) { | ... | ... |