xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL + '/Roo/Person.php'
+ url : baseURL + '/Roo/core_person'
},
reader : {
xtype: 'JsonReader',
{
o.params = o.params || {};
// staff can see all logs, other companies can only see their own.
- if (Pman.Login.authUser.company_id_comptype != 'OWNER') {
+ if (typeof(Pman.Login) !='undefined' && Pman.Login.authUser.company_id_comptype != 'OWNER') {
o.params.company_id = Pman.Login.authUser.company_id;
}
o.params._distinct = 'action';
displayField : 'val',
editable : true,
fieldLabel : 'Action',
+ forceSelection : false,
listWidth : 200,
name : 'medium',
triggerAction : 'all',