Jump to content

Retired errors


DesComm

Recommended Posts

Where is the code located that updates a pilots status when "retired"  Two issues.

 

1. When a pilot is inactive it is getting set as "on Leave" 3 in the database.  Should be set as "inactive" 1 in the database.

2.  Where are the definitions  located for retired status currently 

  • 0 = Active
  • 1 = Inactive
  • 2 = Locked
  • 3 = On Leave

 

Thanks hope every is staying healthy

Link to comment
Share on other sites

1 - If you've got auto-retire set to true in your local.config.php then it routes (either from cron or every 24hours) to this function:

https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/common/PilotData.class.php#L712

 

then ultimately to this function:

https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/common/PilotData.class.php#L353

 

2 - Check your local.config.php file first for PILOT_STATUS_TYPES, otherwise they're defined here: https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/app.config.php#L466

 

Can you check your console and inspect the <select name="retired"> when you go to edit a pilot (the dropdown for their status) and check that the value of each <option> matches up with what it should be.

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...