From d81b65b2964de75ec4757435d61782b712def11a Mon Sep 17 00:00:00 2001 From: Cherrg Date: Mon, 8 Jul 2019 19:11:04 +0200 Subject: [PATCH] add missing template variable on organisation settings (#7385) fix #6755 Signed-off-by: Michael Gnehr --- routers/org/setting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/org/setting.go b/routers/org/setting.go index 0526a96e6fa87..b3ff01d238267 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)