From 7fe517031c2f0b2cece12c3480c5f3c76cbc16e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Mon, 5 Oct 2020 20:50:01 +0200 Subject: [PATCH] Include controls located within other controls --- pkg/opencontrol/standard.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/opencontrol/standard.go b/pkg/opencontrol/standard.go index e30e8a9..974938e 100644 --- a/pkg/opencontrol/standard.go +++ b/pkg/opencontrol/standard.go @@ -58,5 +58,7 @@ func (controls Controls) Add(ctrl *catalog.Control, family string) { Name: string(ctrl.Title), Description: "TODO", } - + for _, child := range ctrl.Controls { + controls.Add(&child, family) + } }