var meth = _this.data.comptype == 'OWNER' ? 'disable' : 'enable';
- if (_this.form.findField('comptype')) {
- _this.form.findField('comptype')[meth]();
+ if (_this.form.findField('comptype_id')) {
+ _this.form.findField('comptype_id')[meth]();
}
// _this.loaded();
emptyText : "Select Type",
fieldLabel : 'Type',
forceSelection : true,
- hiddenName : 'comptype_id',
+ hiddenName : 'comptype',
listWidth : 250,
loadingText : "Searching...",
minChars : 2,