From 730ca356b05eff7e39baf059db6f785e13f71b88 Mon Sep 17 00:00:00 2001 From: Zack Bloom Date: Fri, 16 Oct 2015 21:03:49 -0400 Subject: [PATCH] Ensure key is set in fieldsets --- src/services/schema-form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/schema-form.js b/src/services/schema-form.js index cfee49494..a3f531e54 100644 --- a/src/services/schema-form.js +++ b/src/services/schema-form.js @@ -168,6 +168,7 @@ angular.module('schemaForm').provider('schemaForm', if (stripNullType(schema.type) === 'object') { var f = stdFormObj(name, schema, options); f.type = 'fieldset'; + f.key = options.path; f.items = []; options.lookup[sfPathProvider.stringify(options.path)] = f; @@ -386,7 +387,7 @@ angular.module('schemaForm').provider('schemaForm', if (obj.type === 'checkbox' && angular.isUndefined(obj.schema['default'])) { obj.schema['default'] = false; } - + // Special case: template type with tempplateUrl that's needs to be loaded before rendering // TODO: this is not a clean solution. Maybe something cleaner can be made when $ref support // is introduced since we need to go async then anyway