Index: openacs-4/packages/static-portlet/www/element.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/element.tcl,v diff -u -N -r1.13.2.1 -r1.13.2.2 --- openacs-4/packages/static-portlet/www/element.tcl 26 Sep 2005 08:50:05 -0000 1.13.2.1 +++ openacs-4/packages/static-portlet/www/element.tcl 10 Oct 2005 12:59:35 -0000 1.13.2.2 @@ -74,8 +74,8 @@ set content [template::util::richtext::create $body $format] ad_set_form_values pretty_name } -new_data { - db_transaction { + set item_id [static_portal_content::new \ -package_id $package_id \ -content [template::util::richtext::get_property contents $content] \ @@ -86,9 +86,6 @@ -portal_id $portal_id \ -package_id $package_id \ -content_id $item_id] - - - } # support for templates & already created portals for users, @@ -126,7 +123,9 @@ -portal_id $target_portal_id \ -package_id $community_id \ -content_id $new_content_id] + + portal::set_element_param $new_element_id "package_id" $community_id portal::set_element_param $new_element_id "content_id" $new_content_id