core
core copied to clipboard
Custom templates should push with their page no matter the filter that is selected
Describe the bug Currently if you push a page with a custom template and select any filter that does not include templates, it will not push the custom template alongside the page. This can create errors and unexpected behaviour.
Reproduced on: 22.03/5.3.8 Related Ticket: https://dotcms.zendesk.com/agent/tickets/107395
To Reproduce
- Set up a sender/receiver
- Create a new page on the sender with any template, then modify it's layout
- Push publish that page to the receiver with the filter 'Only Selected Items' selected.
- Try to open that page on the receiver, you will get the following error:
This is because the custom template was not pushed alongside the page.
Expected behavior Because custom templates only impact the selected page and cannot be pushed separately, then they should be pushed with the page regardless of the filter selected. Custom templates should be considered part of the page, including layout changes.