src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt

changeset 242
b7f3e972b13c
parent 232
296e12ff8d1c
child 247
e71ae69c68c0
--- 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
             }

mercurial