Skip to content

Commit

Permalink
Arreglo provisorio de correlativas
Browse files Browse the repository at this point in the history
  • Loading branch information
faloi committed Jun 19, 2019
1 parent 764dd0e commit 7fa8d99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ar/edu/unq/sarmiento/modelo/Alumno.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ public boolean puedeMatricularseA(Materia materia) {
}

private boolean estaRegularizada(Materia m) {
return this.cursadas.stream().filter(c -> c.getMateria().equals(m))
return this.cursadas.stream()
.filter(c -> c.getMateria().equals(m) || c.getMateria().getId() == m.getId())
.anyMatch(c -> c.estadoRegularizadoOAprobado());
}

Expand Down

0 comments on commit 7fa8d99

Please sign in to comment.