Index: openacs-4/contrib/packages/project-manager/sql/postgresql/project-manager-functions-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/sql/postgresql/Attic/project-manager-functions-create.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/contrib/packages/project-manager/sql/postgresql/project-manager-functions-create.sql	30 Jul 2003 20:42:05 -0000	1.3
+++ openacs-4/contrib/packages/project-manager/sql/postgresql/project-manager-functions-create.sql	30 Jul 2003 23:36:07 -0000	1.4
@@ -516,7 +516,7 @@
 select define_function_args('pm_task__new_task_revision', 'task_id, project_id, title, description, start_date, end_date, percent_complete, creation_date, creation_user, creation_ip, package_id');
 
 create function pm_task__new_task_revision (
-	integer,        -- task_id
+	integer,        -- task_id (the item_id)
         integer,        -- project_id
         varchar,        -- title
 	varchar,        -- description
@@ -542,7 +542,6 @@
 	p_creation_ip				alias for $10;
 	p_package_id				alias for $11;
 
-	v_item_id		cr_items.item_id%TYPE;
 	v_revision_id		cr_revisions.revision_id%TYPE;
 	v_id			cr_items.item_id%TYPE;
 begin
@@ -557,7 +556,7 @@
 		''text/plain'',		-- mime_type
 		NULL,			-- nls_language
 		NULL,			-- data
-		v_item_id,		-- item_id
+                p_task_id,		-- item_id
 		NULL,			-- revision_id
 		now(),			-- creation_date
 		p_creation_user,	-- creation_user
