diff options
author | Cherrg <michael@gnehr.de> | 2019-07-08 19:11:04 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-09 01:11:04 +0800 |
commit | 0622e830557fcf63c73541394a56ba23a700a65a (patch) | |
tree | 9736d10298e4f074015ca38f229c352670de63a4 /routers/org | |
parent | 1fc90bb474dfbf19ecbd285de9e2b92db1f7ec99 (diff) | |
download | gitea-0622e830557fcf63c73541394a56ba23a700a65a.tar.gz gitea-0622e830557fcf63c73541394a56ba23a700a65a.zip |
add missing template variable on organisation settings (#7385)
fix #6755
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index 0526a96e6f..b3ff01d238 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -39,6 +39,7 @@ func Settings(ctx *context.Context) { func SettingsPost(ctx *context.Context, form auth.UpdateOrgSettingForm) { ctx.Data["Title"] = ctx.Tr("org.settings") ctx.Data["PageIsSettingsOptions"] = true + ctx.Data["CurrentVisibility"] = structs.VisibleType(ctx.Org.Organization.Visibility) if ctx.HasError() { ctx.HTML(200, tplSettingsOptions) |