|
|
|
@ -33,13 +33,11 @@ func Issues(ctx *middleware.Context) {
|
|
|
|
|
|
|
|
|
|
isShowClosed := ctx.Query("state") == "closed" |
|
|
|
|
|
|
|
|
|
if viewType != "all" { |
|
|
|
|
if !ctx.IsSigned { |
|
|
|
|
if viewType != "all" && !ctx.IsSigned { |
|
|
|
|
ctx.SetCookie("redirect_to", "/"+url.QueryEscape(ctx.Req.RequestURI)) |
|
|
|
|
ctx.Redirect("/user/login") |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var assigneeId, posterId int64 |
|
|
|
|
var filterMode int |
|
|
|
@ -87,7 +85,7 @@ func Issues(ctx *middleware.Context) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if err = issues[i].GetPoster(); err != nil { |
|
|
|
|
ctx.Handle(500, "issue.Issues(GetPoster): %v", err) |
|
|
|
|
ctx.Handle(500, "issue.Issues(GetPoster)", fmt.Errorf("[#%d]%v", issues[i].Id, err)) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|