"view": "Fields.Enum",
"options": [ COPY OPTIONS FROM ACCOUNT ]
"options": [ COPY OPTIONS FROM ACCOUNT ]
getFieldType: function (field) {
if (('defs' in this) && ('fields' in this.defs) && (field in this.defs.fields)) {
if (this.defs.fields[field].type === 'foreign') {
model = GET_MODEL_FROM_NAME(this.defs.fields[field].link);
return model.defs.fields[field].type;
}
else return this.defs.fields[field].type || null;
}
return null;
},
Comment