1.1 --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Mon Aug 09 15:50:37 2021 +0200 1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Mon Aug 09 16:22:56 2021 +0200 1.3 @@ -557,6 +557,13 @@ 1.4 dao.insertIssue(issue) 1.5 } else { 1.6 dao.updateIssue(issue) 1.7 + val newComment = http.param("comment") 1.8 + if (!newComment.isNullOrBlank()) { 1.9 + dao.insertComment(IssueComment(-1, issue.id).apply { 1.10 + author = http.remoteUser?.let { dao.findUserByName(it) } 1.11 + comment = newComment 1.12 + }) 1.13 + } 1.14 issue.id 1.15 } 1.16