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 @@ -172,19 +172,19 @@ func ChangeProjectStatus(ctx *context.Context) {
172
172
case "close" :
173
173
toClose = true
174
174
default :
175
- ctx .Redirect (ctx .Repo . RepoLink + "/projects" )
175
+ ctx .Redirect (ctx .ContextUser . HomeLink () + "/- /projects" )
176
176
}
177
177
id := ctx .ParamsInt64 (":id" )
178
178
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 {
180
180
if project_model .IsErrProjectNotExist (err ) {
181
181
ctx .NotFound ("" , err )
182
182
} else {
183
- ctx .ServerError ("ChangeProjectStatusByIDAndRepoID " , err )
183
+ ctx .ServerError ("ChangeProjectStatusByRepoIDAndID " , err )
184
184
}
185
185
return
186
186
}
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" )))
188
188
}
189
189
190
190
// DeleteProject delete a project
You can’t perform that action at this time.
0 commit comments