From 1e585d7991e106c7ee525291031dbdffca49b4c9 Mon Sep 17 00:00:00 2001 From: Cherrg Date: Mon, 8 Jul 2019 20:03:44 +0200 Subject: [PATCH] backport of #7385 - add missing template variable on organisation settings (#7386) 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 0526a96e6..b3ff01d23 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)