Index: openacs-4/packages/dotlrn/www/admin/term-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/term-edit.tcl,v diff -u -r1.10.2.1 -r1.10.2.2 --- openacs-4/packages/dotlrn/www/admin/term-edit.tcl 31 May 2005 23:13:07 -0000 1.10.2.1 +++ openacs-4/packages/dotlrn/www/admin/term-edit.tcl 15 Jun 2005 10:51:15 -0000 1.10.2.2 @@ -72,6 +72,10 @@ { [template::util::date::compare $start_date $end_date] <= 0 } "The term must start before it ends" } + {end_date + { [template::util::date::compare [template::util::date::from_ansi [clock format [clock seconds] -format "%Y-%m-%d"]] $end_date] <= 0 } + "The term must end in the future" + } } -edit_data { # Setting the rigth format to send to the procedures