Skip to content
Snippets Groups Projects

Add a search for the name to getEditions

2 files
+ 18
7
Compare changes
  • Side-by-side
  • Inline

Files

@@ -192,12 +192,9 @@ public class EditionController {
public Page<EditionDetailsDTO> getEditionsPageActiveOrTaughtBy(
@PathVariable Long personId,
@RequestParam(required = false) List<Long> programs,
@RequestParam(required = false) String nameSearch,
LCPageable pageable) {
if (programs == null) {
return er.findAllActiveOrTaughtBy(personId, pageable.toPageable())
.map(v -> View.convert(v, EditionDetailsDTO.class));
}
return er.findAllActiveOrTaughtByInPrograms(personId, programs, pageable.toPageable())
return er.findAllActiveOrTaughtByWithSearch(personId, programs, nameSearch, pageable.toPageable())
.map(v -> View.convert(v, EditionDetailsDTO.class));
}
Loading