Index: openacs-4/packages/lorsm/www/admin/course-add-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm/www/admin/course-add-3.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/lorsm/www/admin/course-add-3.tcl 24 Jan 2007 02:36:30 -0000 1.3 +++ openacs-4/packages/lorsm/www/admin/course-add-3.tcl 13 Aug 2007 09:20:16 -0000 1.4 @@ -90,7 +90,12 @@ # We need to separate folders (since now all are cr_items) one for the files (content) and the other # one for the created cr_items - set new_parent_id [lors::cr::add_folder -parent_id $parent_id -folder_name $cr_dir] + + if { [ catch {set new_parent_id [lors::cr::add_folder -parent_id $parent_id -folder_name $cr_dir]} errMsg] } { + ns_write "

Unfortunately the same context contains a course with same exact name. hit back and change name.

" + ad_script_abort + } + set new_items_parent_id [lors::cr::add_folder -parent_id $parent_id -folder_name "${cr_dir}_items"] # PERMISSIONS FOR FILE-STORAGE