Index: openacs-4/packages/ecommerce/www/admin/products/add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/products/add-2.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/ecommerce/www/admin/products/add-2.tcl 28 Aug 2008 22:27:57 -0000 1.10 +++ openacs-4/packages/ecommerce/www/admin/products/add-2.tcl 11 Oct 2008 10:48:26 -0000 1.11 @@ -158,7 +158,7 @@ -tmp_filename ${upload_file.tmpfile} ] } -if { [string length $dirname] < 2 } { +if { ![info exists dirname] || [string length $dirname] < 2 } { set dirname [ecommerce::resource::dirname -product_id $product_id -product_name $product_name] } # TODO: improve, along with admin add product pages Index: openacs-4/packages/ecommerce/www/admin/products/add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/products/add.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/ecommerce/www/admin/products/add.tcl 14 Aug 2008 09:47:43 -0000 1.7 +++ openacs-4/packages/ecommerce/www/admin/products/add.tcl 11 Oct 2008 10:48:26 -0000 1.8 @@ -30,7 +30,8 @@ set stock_status_html [ec_stock_status_widget] set price_html "" } -set available_date_html [ad_dateentrywidget available_date] +set available_date "[clock format [clock seconds] -format "%Y-%m-%d"]" +set available_date_html [ad_dateentrywidget $available_date] set product_category_html [ec_category_widget t] set n_user_classes [db_string num_user_classes_select "select count(*) from ec_user_classes"] if { $n_user_classes > 0 && !$multiple_retailers_p} {