File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,19 +172,19 @@ func ChangeProjectStatus(ctx *context.Context) {
172172 case "close" :
173173 toClose = true
174174 default :
175- ctx .Redirect (ctx .Repo . RepoLink + "/projects" )
175+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects" )
176176 }
177177 id := ctx .ParamsInt64 (":id" )
178178
179- if err := project_model .ChangeProjectStatusByRepoIDAndID (ctx . Repo . Repository . ID , id , toClose ); err != nil {
179+ if err := project_model .ChangeProjectStatusByRepoIDAndID (0 , id , toClose ); err != nil {
180180 if project_model .IsErrProjectNotExist (err ) {
181181 ctx .NotFound ("" , err )
182182 } else {
183- ctx .ServerError ("ChangeProjectStatusByIDAndRepoID " , err )
183+ ctx .ServerError ("ChangeProjectStatusByRepoIDAndID " , err )
184184 }
185185 return
186186 }
187- ctx .Redirect (ctx .Repo . RepoLink + "/projects?state=" + url .QueryEscape (ctx .Params (":action" )))
187+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects?state=" + url .QueryEscape (ctx .Params (":action" )))
188188}
189189
190190// DeleteProject delete a project
You can’t perform that action at this time.
0 commit comments