Index: openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql,v
diff -u -r1.71 -r1.72
--- openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	23 Mar 2010 21:53:49 -0000	1.71
+++ openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	25 Mar 2010 00:50:24 -0000	1.72
@@ -1382,13 +1382,18 @@
   	from apm_packages
   	where package_key = register_parameter__package_key
         loop
-        	v_value_id := apm_parameter_value__new(
+          v_value_id := apm_parameter_value__new(
   	    null,
   	    v_pkg.package_id,
   	    v_parameter_id, 
-  	    register_parameter__default_value
-  	    ); 	
+  	    register_parameter__default_value); 	
         end loop;		
+     else
+       v_value_id := apm_parameter_value__new(
+  	 null,
+  	 null,
+  	 v_parameter_id, 
+  	 register_parameter__default_value); 	
      end if;
 	
     return v_parameter_id;
