BugFix für ContentTypeHelperImpl: Die Descendants eines Content-Types wurden nicht korrekt eingetragen.

git-svn-id: https://svn.libreccm.org/ccm/trunk@1458 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-01-18 09:22:23 +00:00
parent e0dd1dd7f3
commit 83926267ac
1 changed files with 5 additions and 5 deletions

View File

@ -384,8 +384,8 @@ public class ContentTypeHelperImpl implements ContentTypeHelper {
|| (parent.getAncestors() != null
&& ct.getAncestors() != null
&& parent.getAncestors().length() < ct.getAncestors().
length())
|| !(parent.getClassName().equals(ct.getClassName())))) {
length()))) {
//|| !(parent.getClassName().equals(ct.getClassName())))) {
//System.out.printf("Setting parent to '%s'...\n",
//ct.getClassName());
parent = ct;
@ -431,12 +431,12 @@ public class ContentTypeHelperImpl implements ContentTypeHelper {
// Add this to parent descendants
// //System.out.printf("Adding '%s' to descendants of parent '%s'...\n",
// type.getClassName(), parent.getClassName());
// parent.addDescendants(type.getID());
for(ContentType p: parents) {
parent.addDescendants(type.getID());
/*for(ContentType p: parents) {
parent.addDescendants(type.getID());
//System.out.printf("Adding '%s' to descendants of parent '%s'...\n",
// type.getClassName(), p.getClassName());
}
}*/
}
//System.out.printf("Finished create pedigree for content type '%s'.\n\n",
// type.getClassName());