Skip to content

Commit 01904f1

Browse files
committed
Merge pull request #578 from EagerIO/development
Ensure key is set in fieldsets
2 parents 38a7dfb + 730ca35 commit 01904f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/schema-form.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ angular.module('schemaForm').provider('schemaForm',
168168
if (stripNullType(schema.type) === 'object') {
169169
var f = stdFormObj(name, schema, options);
170170
f.type = 'fieldset';
171+
f.key = options.path;
171172
f.items = [];
172173
options.lookup[sfPathProvider.stringify(options.path)] = f;
173174

@@ -386,7 +387,7 @@ angular.module('schemaForm').provider('schemaForm',
386387
if (obj.type === 'checkbox' && angular.isUndefined(obj.schema['default'])) {
387388
obj.schema['default'] = false;
388389
}
389-
390+
390391
// Special case: template type with tempplateUrl that's needs to be loaded before rendering
391392
// TODO: this is not a clean solution. Maybe something cleaner can be made when $ref support
392393
// is introduced since we need to go async then anyway

0 commit comments

Comments
 (0)