ViniciusQuadros Posted April 26, 2020 Report Share Posted April 26, 2020 Hello folks... I'm having a dumb issue here with Fltbook. When a new pilot register... his current location (on fltbook's search page) is "-". I guess it's because the current location is based on lhe last pirep sent by the pilot. And this working very well with the pilots that already made some flight on my VA. The problem is that the new pilot (without any flight made) have the current location as "-". I guess that should be shown the pilots HUB, for the first time... How to make it possible? P.s.1: I'm using ProAvia's updated version. P.s2: I'm using crewcenter. Quote Link to comment Share on other sites More sharing options...
web541 Posted April 26, 2020 Report Share Posted April 26, 2020 4 hours ago, ViniciusQuadros said: The problem is that the new pilot (without any flight made) have the current location as "-". Yeah it'll do that until they refresh the page at least once (and at that point their current location will be set to their hub). I did that so that I didn't have to modify any of the default phpVMS files for the module but since you asked, go to this file: https://github.com/DavidJClark/phpvms_5.5.x/blob/master/admin/modules/PilotAdmin/PilotAdmin.php#L663 And after that line, put this: FltbookData::updatePilotLocation($pilot->pilotid, $pilot->hub); Now every time a pilot is approved, it will update their location accordingly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.