Index: openacs-4/packages/project-manager/sql/postgresql/project-manager-functions-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/sql/postgresql/project-manager-functions-create.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/project-manager/sql/postgresql/project-manager-functions-create.sql	30 Apr 2005 06:59:33 -0000	1.2
+++ openacs-4/packages/project-manager/sql/postgresql/project-manager-functions-create.sql	26 May 2005 09:34:28 -0000	1.3
@@ -528,6 +528,8 @@
         values (
                 v_revision_id, p_end_date, p_percent_complete, p_estimated_hours_work, p_estimated_hours_work_min, p_estimated_hours_work_max, ''0'', p_priority);
 
+        update acs_objects set context_id = p_project_id where object_id = task_id;
+
         PERFORM acs_permission__grant_permission(
                 v_revision_id,
                 p_creation_user,
