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 @@ -185,19 +185,19 @@ func ChangeProjectStatus(ctx *context.Context) {
185185 case "close" :
186186 toClose = true
187187 default :
188- ctx .Redirect (ctx .Repo . RepoLink + "/projects" )
188+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects" )
189189 }
190190 id := ctx .ParamsInt64 (":id" )
191191
192- if err := project_model .ChangeProjectStatusByRepoIDAndID (ctx . Repo . Repository . ID , id , toClose ); err != nil {
192+ if err := project_model .ChangeProjectStatusByRepoIDAndID (0 , id , toClose ); err != nil {
193193 if project_model .IsErrProjectNotExist (err ) {
194194 ctx .NotFound ("" , err )
195195 } else {
196- ctx .ServerError ("ChangeProjectStatusByIDAndRepoID " , err )
196+ ctx .ServerError ("ChangeProjectStatusByRepoIDAndID " , err )
197197 }
198198 return
199199 }
200- ctx .Redirect (ctx .Repo . RepoLink + "/projects?state=" + url .QueryEscape (ctx .Params (":action" )))
200+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects?state=" + url .QueryEscape (ctx .Params (":action" )))
201201}
202202
203203// DeleteProject delete a project
You can’t perform that action at this time.
0 commit comments