|
|
|
Issue Type:
|
Bug
|
Assignee:
|
Milan Divilek
|
Created:
|
15/Aug/13 9:26 AM
|
Description:
|
Lets have this structure of autogeneratedComponents
- autoGeneration
- conent
- first component
- second component
- third component
Then visit the page where autogenerated components are located. Remove the first component. The component is automatically created and is order on last place. But when you remove second component then the component is not automatically created again.
Similarly when you add new component into autogenerated components in tmeplate definitions - then if you place this component on first place then this component is generated during first visit of page, but when you add this component on different place then the component is not automatically generated.
The problematic code is info.magnolia.rendering.generator.CopyGenerator.createNode(Node, Map<String, Object>)
if(parentNode != null && parentNode.hasNode(name)) {
log.debug("path {} was already found in repository. No need to create it.", parentNode.getPath() + "/" + name);
break;
}
we check if the component node is exist if yes then we "break" for loop so no other components are processed.
If we change break to continue then all component will be process, but this break the functionality of remove component from the page. Different question is if we want allow removing autogenerated components?
|
Fix Versions:
|
4.5.11 |
Project:
|
Magnolia
|
Priority:
|
Neutral
|
Reporter:
|
Milan Divilek
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------