From dbd1cd31486be22bc1cae2b61ae85155e2410c28 Mon Sep 17 00:00:00 2001 From: gpmn Date: Sat, 2 Mar 2019 11:03:37 +0800 Subject: [PATCH] move down iteration operation --- validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation.go b/validation.go index 0c2167b56..7520d4b32 100644 --- a/validation.go +++ b/validation.go @@ -209,10 +209,10 @@ func validateVisitGroupField(fieldDef *datadictionary.FieldDef, fieldStack []Tag return fieldStack, err } } else { - fieldStack = fieldStack[1:] if childDefs[0].Required() { return fieldStack, RequiredTagMissing(Tag(childDefs[0].Tag())) } + fieldStack = fieldStack[1:] } childDefs = childDefs[1:]