From 2ff87520fb8098527543b28be63b945f919cf5cc Mon Sep 17 00:00:00 2001 From: quasi Date: Tue, 10 Jul 2012 08:03:50 +0000 Subject: [PATCH] Kleine Korrekturen git-svn-id: https://svn.libreccm.org/ccm/trunk@1761 8810af33-2d31-482b-a856-94f89814c4df --- .../ui/ACSObjectCategoryForm.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ccm-core/src/com/arsdigita/categorization/ui/ACSObjectCategoryForm.java b/ccm-core/src/com/arsdigita/categorization/ui/ACSObjectCategoryForm.java index dd7f8cb03..ffe52fffd 100755 --- a/ccm-core/src/com/arsdigita/categorization/ui/ACSObjectCategoryForm.java +++ b/ccm-core/src/com/arsdigita/categorization/ui/ACSObjectCategoryForm.java @@ -45,22 +45,22 @@ import java.util.HashSet; /** * abstract form for assigning categories to acs_objects. The assigned - * categories are those specified by the category widget, which is - * retrieved by the concrete subclass' implementation of getCategoryWidget. - * - * The category widget may be an implementation of CategoryWidget, which - * generates a javascript tree of categories. Implementations need only + * categories are those specified by the category widget, which is + * retrieved by the concrete subclass' implementation of getCategoryWidget. + * + * The category widget may be an implementation of CategoryWidget, which + * generates a javascript tree of categories. Implementations need only * specify an XML prefix and namespace. - * + * * The object that is to be assigned to the categories is specified * by the concrete subclass' implentation of getObject - * + * * @author chris.gilbert@westsussex.gov.uk * - * + * */ // this class has been abstracted out from the original cms specific category form -// in ccm-cms +// in ccm-cms public abstract class ACSObjectCategoryForm extends Form { private Widget m_category; @@ -111,10 +111,10 @@ public abstract class ACSObjectCategoryForm extends Form { ACSObject object = getObject(state); - HashSet curSelectesdCat = new HashSet(); + HashSet curSelectedCat = new HashSet(); CategoryCollection cats = new CategorizedObject(object).getParents(); while (cats.next()) { - curSelectesdCat.add(cats.getCategory().getID()); + curSelectedCat.add(cats.getCategory().getID()); } BigDecimal[] ids = (BigDecimal[]) m_category.getValue(state); @@ -123,7 +123,7 @@ public abstract class ACSObjectCategoryForm extends Form { new OID(Category.BASE_DATA_OBJECT_TYPE, ids[i])); - if(!curSelectesdCat.contains(ids[i])) { + if(!curSelectedCat.contains(ids[i])) { cat.addChild(object); } else { cat.removeChild(object);