From 9c5f68ad11ac06abf4dce0d708a2f6045c0e8267 Mon Sep 17 00:00:00 2001 From: jensp Date: Mon, 15 Dec 2014 17:46:31 +0000 Subject: [PATCH] Fixed several queries because of the changes made to conform with Oracle SQL restrictions. git-svn-id: https://svn.libreccm.org/ccm/trunk@3055 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/content-section/ContentType.pdl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ccm-cms/pdl/com/arsdigita/content-section/ContentType.pdl b/ccm-cms/pdl/com/arsdigita/content-section/ContentType.pdl index 27eb57ee1..7df9b18f8 100755 --- a/ccm-cms/pdl/com/arsdigita/content-section/ContentType.pdl +++ b/ccm-cms/pdl/com/arsdigita/content-section/ContentType.pdl @@ -64,7 +64,7 @@ association { do { select t.type_id, t.object_type, t.label, t.description, t.classname, - t.ancestors, t.descendants, t.mode, t.item_form_id + t.ancestors, t.descendants, t.type_mode, t.item_form_id from content_types t, content_section_type_map m, authoring_kits a where @@ -112,7 +112,7 @@ association { do { select t.type_id, t.object_type, t.label, t.description, t.classname, - t.ancestors, t.descendants, t.mode, t.item_form_id + t.ancestors, t.descendants, t.type_mode, t.item_form_id from content_types t where @@ -128,7 +128,7 @@ association { notAssociatedContentTypes.className = t.classname; notAssociatedContentTypes.ancestors = t.ancestors; notAssociatedContentTypes.descendants = t.descendants; - notAssociatedContentTypes.mode = t.mode; + notAssociatedContentTypes.mode = t.type_mode; notAssociatedContentTypes.itemFormID = t.item_form_id; } } @@ -157,9 +157,9 @@ query registeredContentTypes { select t.type_id, t.object_type, t.label, t.description, t.classname, t.ancestors, t.descendants, - t.mode, t.item_form_id + t.type_mode, t.item_form_id from content_types t - where t.mode != 'I' + where t.type_mode != 'I' and exists (select 1 from content_section_type_map where type_id = t.type_id) } map { @@ -170,7 +170,7 @@ query registeredContentTypes { type.className = t.classname; type.ancestors = t.ancestors; type.descendants = t.descendants; - type.mode = t.mode; + type.mode = t.type_mode; type.itemFormID = t.item_form_id; } }