Commit 4f6d8e53ba29adde0971a9213a9c78fc011c8b6b
1 parent
58566ec8
Exists in
2.8
and in
6 other branches
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,7 +688,12 @@ class App_Model_IedFinder extends CoreExt_Entity | ||
688 | $ano | 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 | return $componentesTurma; | 697 | return $componentesTurma; |
693 | } | 698 | } |
694 | 699 |