Index: openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql,v diff -u -N -r1.31.10.1 -r1.31.10.2 --- openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql 2 Feb 2016 13:14:09 -0000 1.31.10.1 +++ openacs-4/packages/acs-content-repository/sql/oracle/content-item.sql 13 Feb 2016 15:31:49 -0000 1.31.10.2 @@ -80,7 +80,8 @@ is_live in char default 'f', storage_type in cr_items.storage_type%TYPE default 'lob', security_inherit_p in acs_objects.security_inherit_p%TYPE default 't', - package_id in acs_objects.package_id%TYPE default null + package_id in acs_objects.package_id%TYPE default null, + with_child_rels in boolean default 't' ) return cr_items.item_id%TYPE is v_parent_id cr_items.parent_id%TYPE; @@ -197,7 +198,8 @@ -- if the parent is not a folder, insert into cr_child_rels -- We checked above before creating the object that it is a valid rel - if v_parent_id ^= -4 and + if content_item.new.with_child_rels = 't' and + v_parent_id ^= -4 and content_folder.is_folder(v_parent_id) = 'f' then v_rel_id := acs_object.new(