Skip to content

Conversation

@kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Feb 26, 2025

Identify the Bug or Feature request

Fixes #5285

Description of the Change

Adds back the AbstractTemplate.zoneId. XStream likes to use it as a target for references pre-1.16, but can't find the value back if the field is removed.

We null it out in readResolve() so the field isn't serialized going forward and won't be the target of a reference.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Fixed a bug where copying maps with templates on 1.15 can make the campaign unable to be opened in 1.16.

This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this Feb 26, 2025
@github-actions github-actions bot added the bug label Feb 26, 2025
@kwvanderlinde kwvanderlinde force-pushed the bugfix/5285-guid-references branch from ef6de00 to 2ebb256 Compare February 26, 2025 20:33
@kwvanderlinde kwvanderlinde linked an issue Feb 26, 2025 that may be closed by this pull request
After loading, null it out so we don't keep serializing it and it won't be the target of a reference in the future.
@kwvanderlinde kwvanderlinde force-pushed the bugfix/5285-guid-references branch from 2ebb256 to 392beeb Compare February 27, 2025 17:59
@cwisniew cwisniew merged commit b3f2844 into RPTools:release-1.16 Mar 17, 2025
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/5285-guid-references branch March 17, 2025 06:35
@kwvanderlinde kwvanderlinde moved this from Awaiting-Review to Merged in MapTool 1.16 Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Merged

Development

Successfully merging this pull request may close these issues.

[Bug]: Campaign saved in 1.15.2 cannot be opened in 1.16.0.rc-2

2 participants