Index: openacs-4/packages/dotlrn-ecommerce/www/admin/email-template.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/admin/email-template.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn-ecommerce/www/admin/email-template.tcl 8 Aug 2005 13:10:07 -0000 1.3 +++ openacs-4/packages/dotlrn-ecommerce/www/admin/email-template.tcl 11 Aug 2005 03:04:21 -0000 1.4 @@ -49,11 +49,12 @@ set title "Add/edit email template" if {![exists_and_not_null community_id]} { + #if section_id is empty community_id will be empty too set community_id [db_string get_community_id { select community_id from dotlrn_ecommerce_section where section_id = :section_id - }] + } -default ""] } set extra_vars [list [list action $action] [list section_id $section_id]] \ No newline at end of file