Details
- 
    
Bug
 - 
    Resolution: Unresolved
 - 
    
Major
 - 
    None
 - 
    12.6.5
 - 
    None
 
- 
        Unknown
 - 
        
 
Description
This issue is a limitation of the implementation of https://jira.xwiki.org/browse/XWIKI-12775 , but it's not clear to me if this limitation was there from its first version or whether the limitation was introduced afterwards. I reproduced on 12.6.5.
How to reproduce:
- create a tree template (template with some subpages) and a template provider for it
 - make some modifications to the subpages of the template (such as to create a couple of entries of page history)
 - make some modifications to the root page of the template as well (such as to create a couple of entries of page history)
 - create a page from this template
 - upon creation, the whole tree of pages of the template will be "copied" over to the newly created page
 
Expected result:
- All the pages in the tree of pages newly created have a single entry in the page history
 - Creation dates and last modified dates correspond to the current date, when the create from template was done
 
Actual result: