DataObjects/Core_domain.php
[Pman.Core] / Pman.Dialog.CoreProject.js
index e79f582..fc5ae86 100644 (file)
@@ -102,10 +102,11 @@ Pman.Dialog.CoreProject = {
                                     emptyText : "Select Project Type",
                                     fieldLabel : 'Project Type',
                                     forceSelection : true,
+                                    hiddenName : 'type',
                                     listWidth : 400,
                                     loadingText : "Searching...",
                                     minChars : 2,
-                                    name : 'type',
+                                    name : 'type_desc',
                                     pageSize : 20,
                                     qtip : "Select Project Type",
                                     queryParam : 'query[name]',
@@ -133,7 +134,7 @@ Pman.Dialog.CoreProject = {
                                     listeners : {
                                         add : function (combo)
                                         {
-                                         Pman.Dialog.Companies.show( {  id: 0 },  function(data) {
+                                         Pman.Dialog.CoreCompanies.show( {  id: 0 },  function(data) {
                                                     _this.form.setValues({ 
                                                         client_id : data.id,
                                                         client_id_name : data.name
@@ -142,7 +143,7 @@ Pman.Dialog.CoreProject = {
                                         }
                                     },
                                     allowBlank : 'false',
-                                    displayField : 'code',
+                                    displayField : 'name',
                                     editable : 'false',
                                     emptyText : "Select Company",
                                     fieldLabel : 'Client',
@@ -154,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',