From 50ba9394b38478b1b266267bfd232e6cd24de7c8 Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 24 Jun 2009 12:17:42 +0000 Subject: [PATCH] Fehlerkorrektur an OrgaUnit2OrgaUnit git-svn-id: https://svn.libreccm.org/ccm/trunk@203 8810af33-2d31-482b-a856-94f89814c4df --- .../pdl/com/arsdigita/content-types/OrgaUnit2OrgaUnit.pdl | 2 +- .../com/arsdigita/cms/contenttypes/OrganizationalUnit.xml | 7 +++++++ .../com/arsdigita/cms/contenttypes/OrgaUnit2OrgaUnit.java | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ccm-cms-types-organizationalunit/pdl/com/arsdigita/content-types/OrgaUnit2OrgaUnit.pdl b/ccm-cms-types-organizationalunit/pdl/com/arsdigita/content-types/OrgaUnit2OrgaUnit.pdl index f3363751e..b873ecb91 100644 --- a/ccm-cms-types-organizationalunit/pdl/com/arsdigita/content-types/OrgaUnit2OrgaUnit.pdl +++ b/ccm-cms-types-organizationalunit/pdl/com/arsdigita/content-types/OrgaUnit2OrgaUnit.pdl @@ -64,6 +64,6 @@ query allUnitsOrderForUnit { select u.unit_order from ct_orgaunit2orgaunits u where u.owner_id = :ownerID } map { - unitOrder = u.unitOrder; + unitOrder = u.unit_order; } } \ No newline at end of file diff --git a/ccm-cms-types-organizationalunit/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xml b/ccm-cms-types-organizationalunit/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xml index 96110662d..8f9676c3a 100644 --- a/ccm-cms-types-organizationalunit/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xml +++ b/ccm-cms-types-organizationalunit/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xml @@ -18,6 +18,13 @@ component="com.arsdigita.cms.contenttypes.ui.OrganizationalUnitPropertiesStep" ordering="1"/> + + diff --git a/ccm-cms-types-organizationalunit/src/com/arsdigita/cms/contenttypes/OrgaUnit2OrgaUnit.java b/ccm-cms-types-organizationalunit/src/com/arsdigita/cms/contenttypes/OrgaUnit2OrgaUnit.java index 53d3db79a..d146dc0e3 100644 --- a/ccm-cms-types-organizationalunit/src/com/arsdigita/cms/contenttypes/OrgaUnit2OrgaUnit.java +++ b/ccm-cms-types-organizationalunit/src/com/arsdigita/cms/contenttypes/OrgaUnit2OrgaUnit.java @@ -115,11 +115,11 @@ public class OrgaUnit2OrgaUnit extends ACSObject { } public void swapWithNext() { - swapWithNext("com.arsdigita.cms.cotenttypes.addUnitsOrderForUnit", "com.arsdigita.cms.contenttypes.swapOrgaUnit2OrgaUnitWithNextInGroup"); + swapWithNext("com.arsdigita.cms.contenttypes.allUnitsOrderForUnit", "com.arsdigita.cms.contenttypes.swapOrgaUnit2OrgaUnitWithNextInGroup"); } public void swapWithPrevious() { - swapWithPrevious("com.arsdigita.cms.cotenttypes.addUnitsOrderForUnit", "com.arsdigita.cms.contenttypes.swapOrgaUnit2OrgaUnitWithNextInGroup"); + swapWithPrevious("com.arsdigita.cms.contenttypes.allUnitsOrderForUnit", "com.arsdigita.cms.contenttypes.swapOrgaUnit2OrgaUnitWithNextInGroup"); } public void swapWithNext(String queryName, String operationName) {