var data = _this.data;
// we dont have a form where company name is sent in - and is editable..
//this.form.findField('office_id')
- if(!data.countries){
+ if(!data.countries && _this.form.findField('countries')){
_this.form.findField('countries').setValue();// set empty array by default...
}
this.loadItemTypes();
Roo.each(this.itemList, function(il) {
if (typeof(il) != 'object') {
+ // no permission for Core offices.. - can not show department...
+ if (il == 'office_id_name' && !Pman.hasPerm('Core.Offices','S')) {
+ return true;
+ }
+
_this.form.addxtype(_this.itemTypes[il]);
return true;
}
_this.form.addxtype(Roo.apply(il, _this.itemTypes[il.name]));
+ return true;
});
var ef = this.dialog.getLayout().getEl().createChild({tag: 'div'});