DataObjects/Core_watch.php
[Pman.Core] / Pman.Dialog.CoreProject.js
index 4a18d3c..e7229ce 100644 (file)
@@ -114,7 +114,7 @@ Pman.Dialog.CoreProject = {
                                     tpl : '<div class="x-grid-cell-text x-btn button"><b>{desc}</b> </div>',
                                     triggerAction : 'all',
                                     typeAhead : true,
-                                    valueField : 'id',
+                                    valueField : 'code',
                                     width : 200,
                                     store : {
                                         xtype: 'SimpleStore',
@@ -143,7 +143,7 @@ Pman.Dialog.CoreProject = {
                                         }
                                     },
                                     allowBlank : 'false',
-                                    displayField : 'code',
+                                    displayField : 'name',
                                     editable : 'false',
                                     emptyText : "Select Company",
                                     fieldLabel : 'Client',
@@ -155,7 +155,7 @@ Pman.Dialog.CoreProject = {
                                     name : 'client_id_name',
                                     pageSize : 20,
                                     qtip : "Select Companies",
-                                    queryParam : 'query[code]',
+                                    queryParam : 'query[name]',
                                     selectOnFocus : true,
                                     tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
                                     triggerAction : 'all',