File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,8 @@ func SettingsPost(ctx *context.Context) {
488
488
}
489
489
}
490
490
491
- if form .ChangeDefaultUncycloBranch != "" {
492
- if err := wiki_service .ChangeDefaultUncycloBranch (ctx , repo , form .ChangeDefaultUncycloBranch ); err != nil {
491
+ if form .DefaultUncycloBranch != "" {
492
+ if err := wiki_service .ChangeDefaultUncycloBranch (ctx , repo , form .DefaultUncycloBranch ); err != nil {
493
493
log .Error ("ChangeDefaultUncycloBranch failed, err: %v" , err )
494
494
ctx .Flash .Warning (ctx .Tr ("repo.settings.failed_to_change_default_wiki_branch" ))
495
495
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ type RepoSettingForm struct {
133
133
EnableCode bool
134
134
EnableUncyclo bool
135
135
EnableExternalUncyclo bool
136
- ChangeDefaultUncycloBranch string
136
+ DefaultUncycloBranch string
137
137
ExternalUncycloURL string
138
138
EnableIssues bool
139
139
EnableExternalTracker bool
Original file line number Diff line number Diff line change 337
337
</div>
338
338
<div class="inline field gt-pl-4">
339
339
<label>{{ctx.Locale.Tr "repo.settings.default_wiki_branch_name"}}</label>
340
- <input name="change_default_wiki_branch " value="{{.Repository.DefaultUncycloBranch}}">
340
+ <input name="default_wiki_branch " value="{{.Repository.DefaultUncycloBranch}}">
341
341
</div>
342
342
<div class="field">
343
343
<div class="ui radio checkbox{{if $isExternalUncycloGlobalDisabled}} disabled{{end}}"{{if $isExternalUncycloGlobalDisabled}} data-tooltip-content="{{ctx.Locale.Tr "repo.unit_disabled"}}"{{end}}>
You can’t perform that action at this time.
0 commit comments