Index: openacs-4/packages/static-portlet/www/element-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/element-delete.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/static-portlet/www/element-delete.tcl 18 Feb 2002 20:56:22 -0000 1.2 +++ openacs-4/packages/static-portlet/www/element-delete.tcl 18 Feb 2002 21:20:55 -0000 1.3 @@ -17,10 +17,10 @@ # THIS NEEDS TO BE GENERALIZED (FIXME - ben) # FIXME : this might not be unique set element_id [db_string select_element_id " -select element_id from portal_element_map, portal_pages +select portal_element_map.element_id from portal_element_map, portal_pages where portal_pages.portal_id= :portal_id and portal_pages.page_id = portal_element_map.page_id -and ds_name= :ds_name and pretty_name= :pretty_name"] +and portal_element_map.pretty_name= :pretty_name"] db_transaction { # Remove element