Comment 1 for bug 788075

Revision history for this message
Matt Giuca (mgiuca) wrote : Re: Editing a game clears the ActiveVersion

Averted as of r428, but it is still a bug. (Demilestoning.)

What is happening is, it's due to the crazy nature of the activeVersion field. Note that getActiveVersion has NO PERMISSIONS because it is loaded specially. But setActiveVersion is set as normal.

Therefore, on the client when the client goes to write to the game, it is set to null (because it can't be gotten), and so it is written back, also null. I worked around this by explicitly setting the activeVersion to gameVersion in the client before writing the game back, but this is horrible.

Fix it by removing the nasty activeVersion hack (just make activeVersion field a normal key, not a special GameVersion object), and introduce a new field to store the actual GameVersion object.