Pman.Dialog.PersonEditor.js
[Pman.Core] / Pman.Dialog.PersonEditor.js
index 8f32832..e7c1bb0 100644 (file)
@@ -232,7 +232,7 @@ Pman.Dialog.PersonEditor.prototype = {
                         beforeload : function(st,o)
                         {
                         
-                            o.params.isOwner = 0;
+                            o.params['!comptype'] = 'OWNER';
                         },
                         loadexception : Pman.loadException
                     
@@ -263,7 +263,7 @@ Pman.Dialog.PersonEditor.prototype = {
                     adderclick : function()
                     {
                         var cb = this;
-                        Pman.Dialog.Companies.show( {  id: 0 },  function(data) {
+                        Pman.Dialog.CoreCompanies.show( {  id: 0 },  function(data) {
                             cb.setFromData(data);
                         }); 
                     }
@@ -461,7 +461,7 @@ Pman.Dialog.PersonEditor.prototype = {
                 value : '',
                 allowBlank : true, // must be filled in as we rely on it for login details..
                 inputType: 'password',
-                xtype : 'SecurePass',
+                xtype : 'TextField',
                 width : 220,
                 imageRoot : rootURL + '/Pman/templates/images'
             },