Index: openacs-4/packages/acs-content-repository/sql/oracle/content-folder.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/oracle/content-folder.sql,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-content-repository/sql/oracle/content-folder.sql 12 Mar 2004 18:48:46 -0000 1.9 +++ openacs-4/packages/acs-content-repository/sql/oracle/content-folder.sql 9 Apr 2004 14:00:11 -0000 1.10 @@ -23,7 +23,7 @@ creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null, - package_id in acs_objects.package_id%TYPE default null, + package_id in acs_objects.package_id%TYPE default null ) return cr_folders.folder_id%TYPE is v_folder_id cr_folders.folder_id%TYPE; v_context_id acs_objects.context_id%TYPE; @@ -47,7 +47,7 @@ v_package_id := package_id; - if parent_id is not null and package_id is null then + if parent_id is not null and parent_id ^= 0 and package_id is null then v_package_id := acs_object.package_id(content_item.get_root_folder(parent_id)); end if;