From 69237ff73b3f4e3840736cd982072932a51dda96 Mon Sep 17 00:00:00 2001 From: Blake Bourque Date: Fri, 9 Nov 2018 10:23:31 -0500 Subject: [PATCH] Small patch to resolve issue with fields being shown twice when using groups fixes #1681 --- components/quickForm/quickForm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/quickForm/quickForm.js b/components/quickForm/quickForm.js index 5c6f8452..3dc0edc2 100644 --- a/components/quickForm/quickForm.js +++ b/components/quickForm/quickForm.js @@ -131,8 +131,10 @@ function getFieldsForGroup(groupName, schemaObj) { */ function getFieldsWithNoGroup(schemaObj) { var fields = _.map(schemaObj, function (field, fieldName) { + let parent = schemaObj[fieldName.substr(0, fieldName.indexOf('.'))]; return (fieldName.slice(-2) !== '.$') && (!field.autoform || !field.autoform.group) && + (!parent || !parent.autoform || !parent.autoform.group) && fieldName; });