@@ -45,11 +45,10 @@ angular.module('schemaForm').provider('schemaForm',['sfPathProvider', function(s
4545 var stdFormObj = function ( name , schema , options ) {
4646 options = options || { } ;
4747 var f = options . global && options . global . formDefaults ? angular . copy ( options . global . formDefaults ) : { } ;
48-
4948 if ( options . global && options . global . supressPropertyTitles === true ) {
5049 f . title = schema . title ;
5150 } else {
52- f . title = schema . title || name [ 0 ] ;
51+ f . title = schema . title || name ;
5352 }
5453
5554 if ( schema . description ) f . description = schema . description ;
@@ -193,7 +192,7 @@ angular.module('schemaForm').provider('schemaForm',['sfPathProvider', function(s
193192 var arrPath = options . path . slice ( ) ;
194193 arrPath . push ( '' ) ;
195194
196- f . items = [ defaultFormDefinition ( options . path , schema . items , {
195+ f . items = [ defaultFormDefinition ( name , schema . items , {
197196 path : arrPath ,
198197 required : required || false ,
199198 lookup : options . lookup ,
@@ -355,11 +354,10 @@ angular.module('schemaForm').provider('schemaForm',['sfPathProvider', function(s
355354
356355 if ( schema . type === "object" ) {
357356 angular . forEach ( schema . properties , function ( v , k ) {
358- k = [ k ] ;
359357 if ( ignore [ k ] !== true ) {
360358 var required = schema . required && schema . required . indexOf ( k [ k . length - 1 ] ) !== - 1 ;
361359 var def = defaultFormDefinition ( k , v , {
362- path : k , //path to this property in dot notation. Root object has no name
360+ path : [ k ] , //path to this property in bracket notation. Root object has no name
363361 lookup : lookup , //extra map to register with. Optimization for merger.
364362 ignore : ignore , //The ignore list of paths (sans root level name)
365363 required : required , //Is it required? (v4 json schema style)
0 commit comments