Skip to content

Commit 53bd3bd

Browse files
committed
Convert visibility to number (go-gitea#29226)
Backport go-gitea#29226 Don't throw error while creating user (Fixes go-gitea#29218)
1 parent efe7561 commit 53bd3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/admin/user/new.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="inline field {{if .Err_Visibility}}error{{end}}">
3030
<span class="inline required field"><label for="visibility">{{.locale.Tr "settings.visibility"}}</label></span>
3131
<div class="ui selection type dropdown">
32-
<input type="hidden" id="visibility" name="visibility" value="{{if .visibility}}{{.visibility}}{{else}}{{printf "%d" .DefaultUserVisibilityMode}}{{end}}">
32+
<input type="hidden" id="visibility" name="visibility" value="{{if .visibility}}{{printf "%d" .visibility}}{{else}}{{printf "%d" .DefaultUserVisibilityMode}}{{end}}">
3333
<div class="text">
3434
{{if .DefaultUserVisibilityMode.IsPublic}}{{.locale.Tr "settings.visibility.public"}}{{end}}
3535
{{if .DefaultUserVisibilityMode.IsLimited}}{{.locale.Tr "settings.visibility.limited"}}{{end}}

0 commit comments

Comments
 (0)