Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.js
index 7cf8696..c3b24c1 100644 (file)
@@ -252,24 +252,28 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                             name : 'name',
                             pageSize : 20,
                             qtip : "Select core_notify",
-                            queryParam : 'query[person_name]',
+                            queryParam : 'query[person_id_name]',
                             selectOnFocus : true,
-                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
+                            tpl : '<div class="x-grid-cell-text x-btn button"><b>{person_id_name}</b> {person_id_email}</div>',
                             triggerAction : 'all',
                             typeAhead : true,
-                            valueField : 'id',
+                            valueField : 'person_id',
                             width : 300,
                             store : {
                                 xtype: 'Store',
                                 xns: Roo.data,
-                                remoteSort : true,
-                                sortInfo : { direction : 'ASC', field: 'id' },
                                 listeners : {
                                     beforeload : function (_self, o){
                                         o.params = o.params || {};
+                                        o.params._distinct='person_id,person_id_name';
+                                        o.params._columns='person_id,person_id_name';
+                                        o.params['!person_id_name'] = '';
+                                        
                                         // set more here
                                     }
                                 },
+                                remoteSort : true,
+                                sortInfo : { direction : 'ASC', field: 'id' },
                                 proxy : {
                                     xtype: 'HttpProxy',
                                     xns: Roo.data,