Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql,v
diff -u -r1.49 -r1.50
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql	23 Oct 2008 13:04:03 -0000	1.49
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-folder.sql	24 Oct 2008 13:50:14 -0000	1.50
@@ -592,7 +592,7 @@
 
   -- would be better to check if the copy__name alredy exists in the destination folder.
 
-  if v_current_folder_id = copy__target_folder_id and v_name = copy__name then
+  if v_current_folder_id = copy__target_folder_id and (v_name = copy__name or copy__name is null) then
     raise EXCEPTION ''-20000: content_folder.copy - Destination folder is parent folder and folder alredy exists'';
   end if;
 
