Jump to content

Fltbook and First Current Position


ViniciusQuadros

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...