Skip to content

Commit

Permalink
Merge pull request #3574 from bstansberry/WFCORE-4184
Browse files Browse the repository at this point in the history
[WFCORE-4184] Don't lose track of what object's fields are all undefined
  • Loading branch information
jmesnil committed Oct 31, 2018
2 parents a5e5dbf + c90033a commit 8b1f0a9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -447,8 +447,8 @@ private static ModelNode trimUndefinedChildren(ModelNode model) {
if (!copy.hasDefined(key)) {
copy.remove(key);
} else if (copy.get(key).getType() == ModelType.OBJECT) {
boolean undefined = true;
for (ModelNode mn : model.get(key).asList()) {
boolean undefined = true;
Property p = mn.asProperty();
if (p.getValue().getType() != ModelType.OBJECT) { continue; }
for (String subKey : new HashSet<String>(p.getValue().keys())) {
Expand Down

0 comments on commit 8b1f0a9

Please sign in to comment.