|
|
@ -33,12 +33,10 @@ func Issues(ctx *middleware.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
isShowClosed := ctx.Query("state") == "closed"
|
|
|
|
isShowClosed := ctx.Query("state") == "closed"
|
|
|
|
|
|
|
|
|
|
|
|
if viewType != "all" {
|
|
|
|
if viewType != "all" && !ctx.IsSigned {
|
|
|
|
if !ctx.IsSigned {
|
|
|
|
ctx.SetCookie("redirect_to", "/"+url.QueryEscape(ctx.Req.RequestURI))
|
|
|
|
ctx.SetCookie("redirect_to", "/"+url.QueryEscape(ctx.Req.RequestURI))
|
|
|
|
ctx.Redirect("/user/login")
|
|
|
|
ctx.Redirect("/user/login")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var assigneeId, posterId int64
|
|
|
|
var assigneeId, posterId int64
|
|
|
@ -87,7 +85,7 @@ func Issues(ctx *middleware.Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if err = issues[i].GetPoster(); err != nil {
|
|
|
|
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
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|