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

changeset 326
d5f6331d4adb
parent 311
bf67e0ff7131
equal deleted inserted replaced
325:388c1d2147d4 326:d5f6331d4adb
81 if (reference == null) { 81 if (reference == null) {
82 logger.warn("Cannot create issues while not in a project context.") 82 logger.warn("Cannot create issues while not in a project context.")
83 http.response.sendError(404) 83 http.response.sendError(404)
84 return 84 return
85 } 85 }
86 val issue = Issue(reference.id, reference.project) 86 val issue = Issue(reference.id, reference.project).applyFormData(http, dao)
87 processIssueForm(issue, reference, http, dao) 87 processIssueForm(issue, reference, http, dao)
88 if (http.param("save") != null) { 88 if (http.param("save") != null) {
89 http.renderCommit("${pathInfos.issuesHref}${issue.id}") 89 http.renderCommit("${pathInfos.issuesHref}${issue.id}")
90 } else { 90 } else {
91 http.renderCommit(pathInfos.issuesHref) 91 http.renderCommit(pathInfos.issuesHref)

mercurial