mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-23 12:54:44 +08:00
Fix issue #280. Update milestone counter when creating an issue
This commit is contained in:
parent
18718afb36
commit
ec26b78d3c
|
@ -108,7 +108,17 @@ func NewIssue(issue *Issue) (err error) {
|
||||||
sess.Rollback()
|
sess.Rollback()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return sess.Commit()
|
|
||||||
|
if err = sess.Commit(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if issue.MilestoneId > 0 {
|
||||||
|
// FIXES(280): Update milestone counter.
|
||||||
|
return ChangeMilestoneAssign(0, issue.MilestoneId, issue)
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetIssueByIndex returns issue by given index in repository.
|
// GetIssueByIndex returns issue by given index in repository.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user