fixed autopopulation of org and user lookups

This commit is contained in:
John Mitchell
2015-05-11 15:45:09 -04:00
parent 78fb694704
commit 76f01cbc2a

View File

@@ -197,6 +197,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
this.scope = element.scope(); this.scope = element.scope();
} }
if (options.mode) {
this.scope.mode = options.mode;
}
for (fld in form.fields) { for (fld in form.fields) {
this.scope[fld + '_field'] = form.fields[fld]; this.scope[fld + '_field'] = form.fields[fld];
this.scope[fld + '_field'].name = fld; this.scope[fld + '_field'].name = fld;