1.1 --- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Fri Oct 23 18:40:50 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Fri Oct 23 20:34:57 2020 +0200 1.3 @@ -570,7 +570,7 @@ 1.4 return ResponseType.NONE; 1.5 } 1.6 try { 1.7 - final var issueComment = new IssueComment(getParameter(req, Integer.class, "commentid").orElse(-1), issue); 1.8 + final var issueComment = new IssueComment(getParameter(req, Integer.class, "commentid").orElse(-1)); 1.9 issueComment.setComment(getParameter(req, String.class, "comment").orElse("")); 1.10 1.11 if (issueComment.getComment().isBlank()) { 1.12 @@ -582,7 +582,7 @@ 1.13 dao.getUserDao().findByUsername(req.getRemoteUser()).ifPresent(issueComment::setAuthor); 1.14 } 1.15 1.16 - dao.getIssueDao().saveComment(issueComment); 1.17 + dao.getIssueDao().saveComment(issue, issueComment); 1.18 1.19 // TODO: fix redirect location 1.20 setRedirectLocation(req, "./projects/" + issue.getProject().getNode()+"/issues/"+issue.getId()+"/view");