File tree 1 file changed +4
-4
lines changed 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) {
185
185
case "close" :
186
186
toClose = true
187
187
default :
188
- ctx .Redirect (ctx .Repo . RepoLink + "/projects" )
188
+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects" )
189
189
}
190
190
id := ctx .ParamsInt64 (":id" )
191
191
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 {
193
193
if project_model .IsErrProjectNotExist (err ) {
194
194
ctx .NotFound ("" , err )
195
195
} else {
196
- ctx .ServerError ("ChangeProjectStatusByIDAndRepoID " , err )
196
+ ctx .ServerError ("ChangeProjectStatusByRepoIDAndID " , err )
197
197
}
198
198
return
199
199
}
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" )))
201
201
}
202
202
203
203
// DeleteProject delete a project
You can’t perform that action at this time.
0 commit comments