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

raeburn raeburn@source.lon-capa.org
Sat, 13 Nov 2010 14:10:40 -0000


raeburn		Sat Nov 13 14:10:40 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	lonrequestcourse.pm 
  Log:
  - Backport 1.58.
  
  
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.54.2.4 loncom/interface/lonrequestcourse.pm:1.54.2.5
--- loncom/interface/lonrequestcourse.pm:1.54.2.4	Thu Aug 19 17:17:51 2010
+++ loncom/interface/lonrequestcourse.pm	Sat Nov 13 14:10:40 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Request a course
 #
-# $Id: lonrequestcourse.pm,v 1.54.2.4 2010/08/19 17:17:51 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.54.2.5 2010/11/13 14:10:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3040,6 +3040,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'} = '';
+                    }
                 }
             }
         }