Sat, 29 Aug 2020 11:06:31 +0200
fixes issues and version information not set in correct order
src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java | file | annotate | diff | comparison | revisions |
--- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Sun Aug 23 15:10:49 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Sat Aug 29 11:06:31 2020 +0200 @@ -260,14 +260,14 @@ final var project = viewModel.getProjectInfo().getProject(); final var detailView = viewModel.getProjectDetails(); + final var issues = issueDao.list(project); + for (var issue : issues) issueDao.joinVersionInformation(issue); + detailView.setIssues(issues); if (viewModel.getVersionFilter() != null) { detailView.updateVersionInfo(List.of(viewModel.getVersionFilter())); } else { detailView.updateVersionInfo(viewModel.getProjectInfo().getVersions()); } - final var issues = issueDao.list(project); - for (var issue : issues) issueDao.joinVersionInformation(issue); - detailView.setIssues(issues); return forwardView(req, viewModel, "project-details"); }