|
|
|
@@ -193,6 +193,8 @@ func issues(ctx *context.Context, milestoneID int64, isPullOption util.OptionalB |
|
|
|
var mileIDs []int64 |
|
|
|
if milestoneID > 0 { |
|
|
|
mileIDs = []int64{milestoneID} |
|
|
|
} else if milestoneID == -1 { //only search no milestone |
|
|
|
mileIDs = []int64{0} |
|
|
|
} |
|
|
|
|
|
|
|
var issues []*models.Issue |
|
|
|
@@ -355,7 +357,7 @@ func Issues(ctx *context.Context) { |
|
|
|
|
|
|
|
var err error |
|
|
|
// Get milestones. |
|
|
|
ctx.Data["Milestones"], err = models.GetMilestonesByRepoID(ctx.Repo.Repository.ID, api.StateType(ctx.Query("state")), models.ListOptions{}) |
|
|
|
ctx.Data["Milestones"], err = models.GetMilestonesByRepoID(ctx.Repo.Repository.ID, api.StateAll, models.ListOptions{}) |
|
|
|
if err != nil { |
|
|
|
ctx.ServerError("GetAllRepoMilestones", err) |
|
|
|
return |
|
|
|
|