[LON-CAPA-cvs] cvs: loncom /homework grades.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Sat, 15 Dec 2007 21:54:37 -0000
albertel Sat Dec 15 16:54:37 2007 EDT
Modified files:
/loncom/homework grades.pm
Log:
- BUG#5547 CODE is always uppercase
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.499 loncom/homework/grades.pm:1.500
--- loncom/homework/grades.pm:1.499 Wed Dec 5 13:40:59 2007
+++ loncom/homework/grades.pm Sat Dec 15 16:54:35 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.499 2007/12/05 18:40:59 albertel Exp $
+# $Id: grades.pm,v 1.500 2007/12/15 21:54:35 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4174,7 +4174,8 @@
my $result='<h3><span class="LC_info"> '.$env{'form.title'}.'</span></h3>';
$result.='<h3> '.&mt('Student: [_1]',&nameUserString(undef,$$fullname{$env{'form.student'}},$uname,$udom)).
'</h3>'."\n";
- if (&Apache::lonnet::validCODE($env{'form.CODE'})) {
+ $env{'form.CODE'} = uc($env{'form.CODE'});
+ if (&Apache::lonnet::validCODE(uc($env{'form.CODE'})) {
$result.='<h3> '.&mt('CODE: [_1]',$env{'form.CODE'}).'</h3>'."\n";
} else {
delete($env{'form.CODE'});