Commit 9acd7287f6d9dde4d778cc78b9374bb81de519f8

Authored by Everton Muniz
Committed by GitHub
2 parents cb9a9bd6 4f6d8e53
Exists in master

Merge pull request #6584 from portabilis/issue-6583

Corrige bug ao indentificar a disciplina dispensada da turma
Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
ieducar/lib/App/Model/IedFinder.php
... ... @@ -688,7 +688,12 @@ class App_Model_IedFinder extends CoreExt_Entity
688 688 $ano
689 689 );
690 690  
691   - unset($componentesTurma[$disciplinaDispensada]);
  691 + foreach($componentesTurma as $key => $componente) {
  692 + if ($componente->id == $disciplinaDispensada) {
  693 + unset($componentesTurma[$key]);
  694 + }
  695 + }
  696 +
692 697 return $componentesTurma;
693 698 }
694 699  
... ...