data: allCfs ? allCfs : []
});
- // place keyFieldConfig in registry so we can use the standard widgets
+ // place customefield keyFieldConfig in registry so we can use the standard widgets
+ // keyfields are used for key/value customfields with a defined store
stores[app.appName].each(function(cfConfig) {
var definition = cfConfig.get('definition'),
options = definition.options ? definition.options : {},
keyFieldConfig = definition.keyFieldConfig ? definition.keyFieldConfig : null;
if (keyFieldConfig) {
- app.getRegistry().get('config')[cfConfig.get('name')] = keyFieldConfig;
+ var config = app.getRegistry().get('config');
+ config[cfConfig.get('name')] = keyFieldConfig;
+ app.getRegistry().set('config', config);
}
});
}