1.1 --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sat Nov 27 12:12:20 2021 +0100 1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sat Nov 27 13:03:57 2021 +0100 1.3 @@ -531,7 +531,7 @@ 1.4 if (!newComment.isNullOrBlank()) { 1.5 comment.comment = newComment 1.6 dao.updateComment(comment) 1.7 - dao.insertHistoryEvent(comment) 1.8 + dao.insertHistoryEvent(issue, comment) 1.9 } else { 1.10 logger().debug("Not updating comment ${comment.id} because nothing changed.") 1.11 } 1.12 @@ -545,7 +545,7 @@ 1.13 comment = http.param("comment") ?: "" 1.14 } 1.15 val newId = dao.insertComment(comment) 1.16 - dao.insertHistoryEvent(comment, newId) 1.17 + dao.insertHistoryEvent(issue, comment, newId) 1.18 } 1.19 1.20 http.renderCommit("${issuesHref}${issue.id}") 1.21 @@ -602,7 +602,7 @@ 1.22 comment = newComment 1.23 } 1.24 val commentid = dao.insertComment(comment) 1.25 - dao.insertHistoryEvent(comment, commentid) 1.26 + dao.insertHistoryEvent(issue, comment, commentid) 1.27 } 1.28 issue.id 1.29 }