fixed issues for testing

This commit is contained in:
truecode112
2023-05-16 12:27:49 +03:00
parent 9e5f2fd4e3
commit 80f8977e59
3 changed files with 23 additions and 2 deletions
+12 -1
View File
@@ -45,7 +45,18 @@ func Repos(ctx *context.Context) {
}
func UpdateRepoPost(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.UpdateGlobalRepoFrom)
temp := web.GetForm(ctx)
if temp == nil {
ctx.Data["Err_Repo_Size_Limit"] = ""
explore.RenderRepoSearch(ctx, &explore.RepoSearchOptions{
Private: true,
PageSize: setting.UI.Admin.RepoPagingNum,
TplName: tplRepos,
OnlyShowRelevant: false,
})
return
}
form := temp.(*forms.UpdateGlobalRepoFrom)
ctx.Data["Title"] = ctx.Tr("admin.repositories")
ctx.Data["PageIsAdminRepositories"] = true