Index: openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl,v
diff -u -r1.21 -r1.22
--- openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 16 Sep 2008 13:42:53 -0000 1.21
+++ openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 1 Jan 2009 14:15:43 -0000 1.22
@@ -30,49 +30,54 @@
Category widget combining categories and subcategories
} {
if { $multiple_p == "f" } {
- set select_tag "\n"
}
return $to_return
}
@@ -119,15 +125,16 @@
}
set subcategory_counter 0
db_foreach get_subcats_by_name "select subcategory_id, subcategory_name from ec_subcategories where category_id=:category_id order by subcategory_name" {
- incr subcategory_counter
- if { [string compare $default $subcategory_id] == 0 || [string compare $default $subcategory_name] == 0 } {
- append to_return "