diff -r 1ca4f27cefe8 -r b7f3e972b13c src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sat Nov 27 12:12:20 2021 +0100 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sat Nov 27 13:03:57 2021 +0100 @@ -531,7 +531,7 @@ if (!newComment.isNullOrBlank()) { comment.comment = newComment dao.updateComment(comment) - dao.insertHistoryEvent(comment) + dao.insertHistoryEvent(issue, comment) } else { logger().debug("Not updating comment ${comment.id} because nothing changed.") } @@ -545,7 +545,7 @@ comment = http.param("comment") ?: "" } val newId = dao.insertComment(comment) - dao.insertHistoryEvent(comment, newId) + dao.insertHistoryEvent(issue, comment, newId) } http.renderCommit("${issuesHref}${issue.id}") @@ -602,7 +602,7 @@ comment = newComment } val commentid = dao.insertComment(comment) - dao.insertHistoryEvent(comment, commentid) + dao.insertHistoryEvent(issue, comment, commentid) } issue.id }