concretecms / addon_migration_tool

Repository for the concrete5 Migration tool (legacy and modern versions.)
27 stars 25 forks source link

Fix templates not being passed to new pages #100

Closed deek87 closed 2 years ago

deek87 commented 2 years ago

When importing a page, if you map a template to something other than the default template for that page type it will be ignored, as page::add function needs a template object or it will use the default template for that page type.

This PR fixes that issue so when importing it will use the correct page template

aembler commented 2 years ago

Can you open this up against https://github.com/concrete5/migration_tool as well? It's a version 9+ version of the package (with composer support, other enhancements)