From f47dd80a39a0d95173bcbd9883b051b4dd9f8bb2 Mon Sep 17 00:00:00 2001 From: Jens Pelzetter Date: Sun, 23 Feb 2020 11:33:27 +0100 Subject: [PATCH] Fixed another lazy init excpetion --- .../com/arsdigita/cms/ui/type/SelectType.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/SelectType.java b/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/SelectType.java index d0c67fc25..ae35157d9 100755 --- a/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/SelectType.java +++ b/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/SelectType.java @@ -189,18 +189,21 @@ public class SelectType extends CMSForm implements PrintListener, final String[] types = (String[]) data.get(TYPES); final CdiUtil cdiUtil = CdiUtil.createCdiUtil(); - final ContentTypeManager typeManager = cdiUtil.findBean( - ContentTypeManager.class); - final ContentSectionManager sectionManager = cdiUtil.findBean( - ContentSectionManager.class); +// final ContentTypeManager typeManager = cdiUtil.findBean( +// ContentTypeManager.class); +// final ContentSectionManager sectionManager = cdiUtil.findBean( +// ContentSectionManager.class); + final ContentTypeAdminPaneController controller = cdiUtil + .findBean(ContentTypeAdminPaneController.class); if (types != null) { for (String type : types) { - sectionManager.addContentTypeToSection( - typeManager.classNameToClass(type), - section, - section.getLifecycleDefinitions().get(0), - section.getWorkflowTemplates().get(0)); +// sectionManager.addContentTypeToSection( +// typeManager.classNameToClass(type), +// section, +// section.getLifecycleDefinitions().get(0), +// section.getWorkflowTemplates().get(0)); + controller.addContentTypeToContentSection(type, section); } } }