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

changeset 214
69647ddb57f2
parent 210
37fbdcb422b7
child 215
028792eda9b7
     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  

mercurial