[LON-CAPA-cvs] cvs: loncom /interface lonrequestcourse.pm

raeburn raeburn@source.lon-capa.org
Fri, 10 Sep 2010 20:25:51 -0000


raeburn		Fri Sep 10 20:25:51 2010 EDT

  Modified files:              
    /loncom/interface	lonrequestcourse.pm 
  Log:
  - Server-side clean-up of LON-CAPA section names.
  
  
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.57 loncom/interface/lonrequestcourse.pm:1.58
--- loncom/interface/lonrequestcourse.pm:1.57	Thu Aug 19 17:12:08 2010
+++ loncom/interface/lonrequestcourse.pm	Fri Sep 10 20:25:51 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Request a course
 #
-# $Id: lonrequestcourse.pm,v 1.57 2010/08/19 17:12:08 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.58 2010/09/10 20:25:51 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3036,6 +3036,10 @@
                         push(@instsections,$sec);
                     }
                     $sections{$i}{'loncapa'} = $env{'form.loncapasec_'.$i};
+                    $sections{$i}{'loncapa'} =~ s/\W//g;
+                    if ($sections{$i}{'loncapa'} eq 'none') {
+                        $sections{$i}{'loncapa'} = '';
+                    }
                 }
             }
         }