fixes issue not containing version information in issue form

Sat, 29 Aug 2020 16:48:15 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 29 Aug 2020 16:48:15 +0200
changeset 104
8be80ea4f52b
parent 103
3d0d030dffa7
child 105
250c5cbb8276

fixes issue not containing version information in issue form

src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Sat Aug 29 12:15:48 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java	Sat Aug 29 16:48:15 2020 +0200
@@ -327,7 +327,9 @@
 
         final var issueParam = getParameter(req, Integer.class, "issue");
         if (issueParam.isPresent()) {
-            final var issue = dao.getIssueDao().find(issueParam.get());
+            final var issueDao = dao.getIssueDao();
+            final var issue = issueDao.find(issueParam.get());
+            issueDao.joinVersionInformation(issue);
             req.getSession().setAttribute(SESSION_ATTR_SELECTED_PROJECT, issue.getProject().getId());
             populate(viewModel, req, dao);
             configure(viewModel, issue, dao);

mercurial