From 960a0705cb79f92b57bc02eef7cc8a83548cd2df 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 Former-commit-id: f024b2c47f00cf7bd1a5e9de6e0c299292d51904 --- .../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); } } }