X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.js;h=618ddda7ff237fa3d3148cf63355dec3767847bf;hp=f09eeb7b2d601f7628e862645e3a652fb4b995fd;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=80db6d0be9b6376211ae429f6718dc33a347efa8 diff --git a/Pman.js b/Pman.js index f09eeb7b..618ddda7 100644 --- a/Pman.js +++ b/Pman.js @@ -358,7 +358,7 @@ Pman = new Roo.Document( Pman.Dialog.PersonStaff.show( { id : 0, - company_id : Pman.Login.authUser.company_id_id * 1, + company_id : Pman.Login.authUser.company_id * 1, company_id_name : Pman.Login.authUser.company_id_name }, function(data) { forceAdmin(data); @@ -366,6 +366,7 @@ Pman = new Roo.Document( ); return; } + Roo.state.Manager.set('Pman.Login.username', data.email), window.onbeforeunload = false; document.location = baseURL + '?ts=' + Math.random(); @@ -393,7 +394,7 @@ Pman = new Roo.Document( if (Pman.Login.authUser.id < 0) { // admin company has been created - create the user.. - if (Pman.Login.authUser.company_id_id* 1 > 0) { + if (Pman.Login.authUser.company_id* 1 > 0) { forceAdmin(); return; } @@ -550,7 +551,7 @@ Pman = new Roo.Document( genericDelete : function(tab,tbl) { var r = []; - + var s = tab.grid.getSelectionModel().getSelections(); if (!s.length) { @@ -592,6 +593,7 @@ Pman = new Roo.Document( }, failure: function(act) { + Roo.log(act); var msg = ''; try {