fixes issues and version information not set in correct order

Sat, 29 Aug 2020 11:06:31 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 29 Aug 2020 11:06:31 +0200
changeset 100
7e3c61c340d3
parent 99
a369fb1b3aa2
child 101
c34c81b87674

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");
     }

mercurial