diff options
author | Unknwon <u@gogs.io> | 2015-09-15 10:03:50 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-15 10:03:50 -0400 |
commit | e303d74ab65dfeae17b815efd424bd0618a7d630 (patch) | |
tree | bd11c78432b2fbc186f52c83677ec0db00a341af /models | |
parent | e4ecbcdf4a3ab4f31ea52774a94ccdca4e4e7091 (diff) | |
download | gitea-e303d74ab65dfeae17b815efd424bd0618a7d630.tar.gz gitea-e303d74ab65dfeae17b815efd424bd0618a7d630.zip |
#1643 fix delete milestone
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index dffd5a8aaa..2bc25da447 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1619,7 +1619,7 @@ func DeleteMilestoneByID(mid int64) error { return err } - if _, err = sess.Id(m.ID).Delete(m); err != nil { + if _, err = sess.Id(m.ID).Delete(new(Milestone)); err != nil { return err } |