summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-15 10:03:50 -0400
committerUnknwon <u@gogs.io>2015-09-15 10:03:50 -0400
commite303d74ab65dfeae17b815efd424bd0618a7d630 (patch)
treebd11c78432b2fbc186f52c83677ec0db00a341af
parente4ecbcdf4a3ab4f31ea52774a94ccdca4e4e7091 (diff)
downloadgitea-e303d74ab65dfeae17b815efd424bd0618a7d630.tar.gz
gitea-e303d74ab65dfeae17b815efd424bd0618a7d630.zip
#1643 fix delete milestone
-rw-r--r--models/issue.go2
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
}