summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-05 11:18:24 +0800
committerUnknwon <u@gogs.io>2015-08-05 11:18:24 +0800
commitce4dcf1e83d19ac0eb54ff059a52fca7c94308f8 (patch)
tree6b3378ab1a478c6f47dfce042dbf2bef478aec9c /routers/repo/issue.go
parent9311a9858ae4dd10450370da8a93c37c1dad798b (diff)
downloadgitea-ce4dcf1e83d19ac0eb54ff059a52fca7c94308f8.tar.gz
gitea-ce4dcf1e83d19ac0eb54ff059a52fca7c94308f8.zip
fix naming
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 89fcf558b3..f3afb2cc55 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -176,12 +176,12 @@ func CreateIssue(ctx *middleware.Context) {
err error
)
// Get all milestones.
- ctx.Data["OpenMilestones"], err = models.Milestones(repo.Id, -1, false)
+ ctx.Data["OpenMilestones"], err = models.GetMilestones(repo.Id, -1, false)
if err != nil {
ctx.Handle(500, "GetMilestones.1: %v", err)
return
}
- ctx.Data["ClosedMilestones"], err = models.Milestones(repo.Id, -1, true)
+ ctx.Data["ClosedMilestones"], err = models.GetMilestones(repo.Id, -1, true)
if err != nil {
ctx.Handle(500, "GetMilestones.2: %v", err)
return
@@ -220,12 +220,12 @@ func CreateIssuePost(ctx *middleware.Context, form auth.CreateIssueForm) {
var err error
// Get all milestones.
- _, err = models.Milestones(ctx.Repo.Repository.Id, -1, false)
+ _, err = models.GetMilestones(ctx.Repo.Repository.Id, -1, false)
if err != nil {
send(500, nil, err)
return
}
- _, err = models.Milestones(ctx.Repo.Repository.Id, -1, true)
+ _, err = models.GetMilestones(ctx.Repo.Repository.Id, -1, true)
if err != nil {
send(500, nil, err)
return
@@ -385,12 +385,12 @@ func ViewIssue(ctx *middleware.Context) {
}
// Get all milestones.
- ctx.Data["OpenMilestones"], err = models.Milestones(ctx.Repo.Repository.Id, -1, false)
+ ctx.Data["OpenMilestones"], err = models.GetMilestones(ctx.Repo.Repository.Id, -1, false)
if err != nil {
ctx.Handle(500, "issue.ViewIssue(GetMilestones.1): %v", err)
return
}
- ctx.Data["ClosedMilestones"], err = models.Milestones(ctx.Repo.Repository.Id, -1, true)
+ ctx.Data["ClosedMilestones"], err = models.GetMilestones(ctx.Repo.Repository.Id, -1, true)
if err != nil {
ctx.Handle(500, "issue.ViewIssue(GetMilestones.2): %v", err)
return
@@ -988,7 +988,7 @@ func Milestones(ctx *middleware.Context) {
}
ctx.Data["Page"] = paginater.New(total, setting.IssuePagingNum, page, 5)
- miles, err := models.Milestones(ctx.Repo.Repository.Id, page, isShowClosed)
+ miles, err := models.GetMilestones(ctx.Repo.Repository.Id, page, isShowClosed)
if err != nil {
ctx.Handle(500, "GetMilestones", err)
return