From 18bec74a6c0100740d02a352a737bc14377fdeb4 Mon Sep 17 00:00:00 2001 From: Michael Gnehr Date: Mon, 8 Jul 2019 19:03:09 +0200 Subject: [PATCH] backport of #7385 - add missing template variable on organisation settings affects #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)