core
core copied to clipboard
Selected Relationships, Categories not pushing when pushing contentlet
To Reproduce on a fresh starter:
- Create a new "News" item
- Give it categories
- Click the "Relationships" tab and select some related media.
- Push this to another dotCMS server running the starter.
- Relationships and categories are gone on the receiving server.
http://screencast.com/t/13fvhIQbVCA
http://screencast.com/t/lPAweZ3gj
@wezell where these new Categories? meaning new Categories added to the system or no?
So the code here that should be solving this is in the DependcyManager around line 511
Map<Relationship, List<Contentlet>> contentRel =
APILocator.getContentletAPI().findContentRelationships(con, user);
for (Relationship rel : contentRel.keySet()) {
contentsToProcess.addAll(contentRel.get(rel));
/**
* ISSUE #2222: https://github.com/dotCMS/dotCMS/issues/2222
*
* We need the relationships in which the single related content is involved.
*
*/
if(contentRel.get(rel).size()>0)
relationships.add(rel.getInode(), rel.getModDate());
}
}
nope. Standard starter categories.
Relationships working. categories don't
merged to master and master-2.5
Fixed, tested on master 2.5