finish create issue with milestone and assignee

This commit is contained in:
Unknwon 2015-08-10 21:47:23 +08:00
parent 09a1b2a1f5
commit 75aff60c90
13 changed files with 275 additions and 206 deletions

View file

@ -339,13 +339,13 @@ func Issues(ctx *middleware.Context) {
issues := make([]*models.Issue, len(ius))
for i := range ius {
issues[i], err = models.GetIssueById(ius[i].IssueId)
issues[i], err = models.GetIssueById(ius[i].IssueID)
if err != nil {
if err == models.ErrIssueNotExist {
log.Warn("user.Issues(GetIssueById #%d): issue not exist", ius[i].IssueId)
log.Warn("user.Issues(GetIssueById #%d): issue not exist", ius[i].IssueID)
continue
} else {
ctx.Handle(500, fmt.Sprintf("user.Issues(GetIssueById #%d)", ius[i].IssueId), err)
ctx.Handle(500, fmt.Sprintf("user.Issues(GetIssueById #%d)", ius[i].IssueID), err)
return
}
}