Skip to content

Commit e1383aa

Browse files
committed
Bug fix: 2 x $parent required
1 parent 730fbed commit e1383aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
114114
var arrayDepth = args.form.key.filter(function(e) { return e === '' }).length;
115115
var arrayIndices = '$index';
116116
for (var i = 1; i < arrayDepth; i++) {
117-
arrayIndices = Array(i + 1).join('$parent.') + '$index,' + arrayIndices;
117+
arrayIndices = Array(i + 1).join('$parent.$parent.') + '$index,' + arrayIndices;
118118
}
119119

120120
evalExpr = 'evalExpr(' + args.path + '.condition,{ model: model, "arrayIndex": $index, ' +

0 commit comments

Comments
 (0)