Index: openacs-4/packages/bug-tracker/sql/oracle/bug-tracker-create-packages.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/sql/oracle/bug-tracker-create-packages.sql,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/bug-tracker/sql/oracle/bug-tracker-create-packages.sql	27 Mar 2004 13:15:29 -0000	1.5
+++ openacs-4/packages/bug-tracker/sql/oracle/bug-tracker-create-packages.sql	24 Feb 2005 13:33:03 -0000	1.6
@@ -48,6 +48,7 @@
         creation_date   in date default sysdate(),
         creation_user   in integer,
         creation_ip     in varchar2 default null,
+	fix_for_version in integer default null,
         item_subtype    in varchar2 default 'bt_bug',
         content_type    in varchar2 default 'bt_bug_revision'
     ) return integer;
@@ -329,6 +330,7 @@
         creation_date   in date default sysdate(),
         creation_user   in integer,
         creation_ip     in varchar2 default null,
+	fix_for_version in integer default null,
         item_subtype    in varchar2 default 'bt_bug',
         content_type    in varchar2 default 'bt_bug_revision'
     ) return integer
@@ -383,7 +385,8 @@
              parent_id,
              project_id,
              creation_date,
-             creation_user)
+             creation_user,
+	     fix_for_version)
         values
             (v_bug_id,
              v_bug_number,
@@ -392,7 +395,8 @@
              v_folder_id,
              bt_bug.new.package_id,
              bt_bug.new.creation_date,
-             bt_bug.new.creation_user);
+             bt_bug.new.creation_user,
+	     bt_bug.new.fix_for_version);
 
         -- create the initial revision
         v_revision_id := bt_bug_revision.new(
@@ -401,7 +405,7 @@
             component_id =>             bt_bug.new.component_id, 
             found_in_version =>         bt_bug.new.found_in_version,
             fix_for_version =>          null,                     
-            fixed_in_version =>         null,                     
+            fixed_in_version =>         bt_bug.new.fix_for_version,                     
             resolution =>               null,                     
             user_agent =>               bt_bug.new.user_agent,    
             summary =>                  bt_bug.new.summary,       
