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) |