Change-Id: I15b425dcec3a16b22a4aa731ff2f7816c0753edc
Reviewed-on: http://gerrit.tine20.com/customers/5251
Reviewed-by: Cornelius Weiss <c.weiss@metaways.de>
Tested-by: Cornelius Weiss <c.weiss@metaways.de>
this.i18nRecordName = this.app.i18n.n_hidden(this.recordClass.getMeta('recordName'), this.recordClass.getMeta('recordsName'), 1);
this.i18nRecordsName = this.app.i18n._hidden(this.recordClass.getMeta('recordsName'));
}
this.i18nRecordName = this.app.i18n.n_hidden(this.recordClass.getMeta('recordName'), this.recordClass.getMeta('recordsName'), 1);
this.i18nRecordsName = this.app.i18n._hidden(this.recordClass.getMeta('recordsName'));
}
if (! this.recordProxy && this.recordClass) {
Tine.log.debug('no record proxy given, creating a new one...');
this.recordProxy = new Tine.Tinebase.data.RecordProxy({
if (! this.recordProxy && this.recordClass) {
Tine.log.debug('no record proxy given, creating a new one...');
this.recordProxy = new Tine.Tinebase.data.RecordProxy({
- var grantsField = this.recordClass.getMeta('grantsPath')
- .replace(/^data\./, '')
- .replace(/\.+/g, '');
+ // auto eval grants
+ if (this.recordClass) {
+ var grantsField = this.recordClass.getMeta('grantsPath')
+ .replace(/^data\./, '')
+ .replace(/\.+/g, '');
- this.evalGrants = this.evalGrants && (grantsField == 'data' || this.recordClass.hasField(grantsField));
+ this.evalGrants = this.evalGrants && (grantsField == 'data' || this.recordClass.hasField(grantsField));
+ }
// init plugins
this.plugins = Ext.isString(this.plugins) ? Ext.decode(this.plugins) : Ext.isArray(this.plugins) ? this.plugins.concat(Ext.decode(this.initialConfig.plugins)) : [];
// init plugins
this.plugins = Ext.isString(this.plugins) ? Ext.decode(this.plugins) : Ext.isArray(this.plugins) ? this.plugins.concat(Ext.decode(this.initialConfig.plugins)) : [];