Index: openacs-4/packages/dotlrn/www/admin/class-new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/admin/class-new.tcl,v diff -u -r1.17 -r1.18 --- openacs-4/packages/dotlrn/www/admin/class-new.tcl 6 Apr 2005 21:29:37 -0000 1.17 +++ openacs-4/packages/dotlrn/www/admin/class-new.tcl 8 Aug 2006 21:26:28 -0000 1.18 @@ -76,6 +76,11 @@ form get_values add_class \ department_key pretty_name description referer subject_key + # If we do not provide a special subject_key make use of the pretty_name instead + if {[empty_string_p $subject_key]} { + set subject_key $department_key.[dotlrn::generate_key -name $pretty_name] + } + set class_key [dotlrn_class::new \ -class_key $subject_key \ -department_key $department_key \