Jump to content
  • Sign Up
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign in to follow this  

    Discharged Soldiers not removed from Admin Positions

    Arthur Cantu

    Summary: When discharging soldier, they are not removed from the admin position, so they still appear within that roster.

    Steps to Reproduce: Discharge soldier as usual, check remove from groups.

    Expected Results: Soldier is discharged, admin positions removed, groups removed.

    Actual Results: Soldier is discharged successfully, groups are removed successfully, but admin positions are not removed, leaving discharged soldier visible in the roster's list.

    Version/Build: 1.2.0


    Sign in to follow this  

    User Feedback

    Recommended Comments

    I won’t classify this one as a bug, as it’s functioning as intended. Previously, I left them in their admin position to accurately preserve their personnel file to reflect their status when discharged but with the addition of rosters, they will still show up. I will add in the code to remove them when a discharge is processed!

    Share this comment

    Link to comment
    Share on other sites

    I modified the roots() function of the Soldier class to always exclude discharged soldiers, unless a parameter in the function is set to yes. This will globally prevent discharged soldiers form showing up in the system on the frontend.

    Share this comment

    Link to comment
    Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.