Index: openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.1.1d1-5.1.1d2.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.1.1d1-5.1.1d2.sql,v
diff -u -r1.1.2.1 -r1.1.2.2
--- openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.1.1d1-5.1.1d2.sql	6 May 2004 00:12:45 -0000	1.1.2.1
+++ openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.1.1d1-5.1.1d2.sql	6 May 2004 00:35:55 -0000	1.1.2.2
@@ -74,3 +74,19 @@
 on cr_items
 for each row 
 execute procedure cr_items_tree_update_tr ();
+
+-- Fix typo in function and invalid parameter reference. Bug #1793
+
+create or replace function content_item__move (integer,integer)
+returns integer as '
+declare
+  move__item_id                alias for $1;  
+  move__target_folder_id       alias for $2;
+begin
+  perform content_item__move(
+	move__item_id,
+	move__target_folder_id,
+	NULL
+	);
+return null;
+end;' language 'plpgsql';
