From 83926267acce2913b5245fffa8e463a6dd4a8077 Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 18 Jan 2012 09:22:23 +0000 Subject: [PATCH] =?UTF-8?q?BugFix=20f=C3=BCr=20ContentTypeHelperImpl:=20Di?= =?UTF-8?q?e=20Descendants=20eines=20Content-Types=20wurden=20nicht=20korr?= =?UTF-8?q?ekt=20eingetragen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@1458 8810af33-2d31-482b-a856-94f89814c4df --- .../cms/contenttypes/ContentTypeHelperImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeHelperImpl.java b/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeHelperImpl.java index f18fd73df..def8ffb46 100755 --- a/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeHelperImpl.java +++ b/ccm-cms/src/com/arsdigita/cms/contenttypes/ContentTypeHelperImpl.java @@ -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());