diff -r 5b55a5318a83 -r 69647ddb57f2 src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Mon Aug 09 15:50:37 2021 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Mon Aug 09 16:22:56 2021 +0200 @@ -557,6 +557,13 @@ dao.insertIssue(issue) } else { dao.updateIssue(issue) + val newComment = http.param("comment") + if (!newComment.isNullOrBlank()) { + dao.insertComment(IssueComment(-1, issue.id).apply { + author = http.remoteUser?.let { dao.findUserByName(it) } + comment = newComment + }) + } issue.id }