From: Alan Knowles Date: Fri, 17 Sep 2010 10:54:59 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=466b39bf2507d9b5bae22325eaead59e13964989 Pman.Dialog.CorePersonContact.js --- diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index 4cc0e188..bca4d729 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -166,14 +166,15 @@ Pman.Dialog.CorePersonContact = { store : { xtype: 'Store', xns: Roo.data, - remoteSort : true, - sortInfo : { direction : 'ASC', field: 'id' }, listeners : { beforeload : function (_self, o){ o.params = o.params || {}; - // set more here + var coid = _this.form.findField('company_id').getValue(); + o.params.company_id = coid; } }, + remoteSort : true, + sortInfo : { direction : 'ASC', field: 'id' }, proxy : { xtype: 'HttpProxy', xns: Roo.data,