Steps to reproduce:
- Setup 2 separate Liferay
- Create a Site on both and turn on remote staging on it.
- Create a Web Content Structure in Global scope. (on the staging instance)
- Publish Global scope.
- Create a Web Content Template in the staging Site based on the global structure.
- Publish the site to live.
Result: In the database the template in live has the structureId in staging and a NoSuchStructureException is throw during accessing the list of the templates
The issue is not relevant on 6.2.x or master because referenced data is is handled in a different way, and also JournalStractures/JournalTemplates were replaced by DDMStructures/DDMTemplates.