Dunno if this has been reported yet, but since the most recent patch, I went stateside and looked at some air units I had been training, 100%....I tried to flip them to "escort", or another function, and while the audio "click" could be heard, the units would not move from training..
I was able to "standdown", and this, then allowed me to put the unit in another function.....Wierd..
I found that you could set training to 100% and then select a primary non-training mission. This could cause confusion in some code.
Setting 100% will automatically set the primary mission to Training.
I probably didn't think it from the other angle - selecting a non-training mission should turn off the training % (ie 0%).
At the moment, you would need to move training off 100% (set to 0 or any thing less than 100) to select a new primary mission.
Noticed this as well, and once I figured out that all I had to do was to move the training to below 100% everything is fine. If this helps your code, I don't find this to be an issue.