From efb5ac868a7ff2c42606ea6a7e1c040e6bad8797 Mon Sep 17 00:00:00 2001 From: quasi Date: Tue, 25 Jan 2011 08:43:51 +0000 Subject: [PATCH] Noch eine Typo gefunden und korrigiert git-svn-id: https://svn.libreccm.org/ccm/trunk@712 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/src/com/arsdigita/cms/ContentSection.java | 4 ++-- ccm-cms/src/com/arsdigita/cms/ui/authoring/NewItemForm.java | 2 +- .../com/arsdigita/cms/ui/search/ContentTypeFilterWidget.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ccm-cms/src/com/arsdigita/cms/ContentSection.java b/ccm-cms/src/com/arsdigita/cms/ContentSection.java index 7cc184b38..2e059cc74 100755 --- a/ccm-cms/src/com/arsdigita/cms/ContentSection.java +++ b/ccm-cms/src/com/arsdigita/cms/ContentSection.java @@ -779,7 +779,7 @@ public class ContentSection extends Application { return types; } - public ContentTypeCollection getDecendantsOfContentType(ContentType ct) { + public ContentTypeCollection getDescendantsOfContentType(ContentType ct) { ContentTypeCollection ctc = getContentTypes(); // The Filter Factory @@ -791,7 +791,7 @@ public class ContentSection extends Application { // The content type must be either of the requested type or.addFilter(ff.equals(ContentType.ID, ct.ID)); - // Or must be a decendant of the requested type + // Or must be a descendant of the requested type try { StringTokenizer strTok = new StringTokenizer(ct.getDescendants(), "/"); while (strTok.hasMoreElements()) { diff --git a/ccm-cms/src/com/arsdigita/cms/ui/authoring/NewItemForm.java b/ccm-cms/src/com/arsdigita/cms/ui/authoring/NewItemForm.java index 14409ada4..aebf3d26d 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/authoring/NewItemForm.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/authoring/NewItemForm.java @@ -112,7 +112,7 @@ public abstract class NewItemForm extends Form { if (parentType == null) { typesCollection = section.getCreatableContentTypes(); } else { - typesCollection = section.getDecendantsOfContentType(parentType); + typesCollection = section.getDescendantsOfContentType(parentType); } typesCollection.addOrder(ContentType.LABEL); diff --git a/ccm-cms/src/com/arsdigita/cms/ui/search/ContentTypeFilterWidget.java b/ccm-cms/src/com/arsdigita/cms/ui/search/ContentTypeFilterWidget.java index 1eb2209bd..afb2fa0b9 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/search/ContentTypeFilterWidget.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/search/ContentTypeFilterWidget.java @@ -56,7 +56,7 @@ public class ContentTypeFilterWidget extends FilterWidget { } public ContentTypeFilterWidget(ContentSection section, ContentType parentType) { - this(section.getDecendantsOfContentType(parentType)); + this(section.getDescendantsOfContentType(parentType)); m_section = section; m_parentType = parentType; } @@ -108,7 +108,7 @@ public class ContentTypeFilterWidget extends FilterWidget { if (parentType == null) { typesCollection = section.getContentTypes(); } else { - typesCollection = section.getDecendantsOfContentType(parentType); + typesCollection = section.getDescendantsOfContentType(parentType); } } else {