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 24b2908 commit decc6b8
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 decc6b8

Please sign in to comment.