[LON-CAPA-cvs] cvs: loncom /homework grades.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 03 Nov 2006 20:04:09 -0000
albertel Fri Nov 3 15:04:09 2006 EDT
Modified files:
/loncom/homework grades.pm
Log:
- pass specified CODE to display of student view in sequence grading
- allow the use of the CODE '0' in scantron grading
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.382 loncom/homework/grades.pm:1.383
--- loncom/homework/grades.pm:1.382 Mon Oct 23 21:03:54 2006
+++ loncom/homework/grades.pm Fri Nov 3 15:04:08 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.382 2006/10/24 01:03:54 albertel Exp $
+# $Id: grades.pm,v 1.383 2006/11/03 20:04:08 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3940,7 +3940,7 @@
my %form = ('CODE' => $env{'form.CODE'},);
if ($env{'form.vProb'} eq 'yes' ) {
$studentTable.=&show_problem($request,$symbx,$uname,$udom,1,
- undef,'both');
+ undef,'both',\%form);
} else {
my $companswer = &Apache::loncommon::get_student_answers($symbx,$uname,$udom,$env{'request.course.id'},%form);
$companswer =~ s|<form(.*?)>||g;
@@ -5670,8 +5670,9 @@
'grade_domain' =>$udom,
'grade_courseid'=>$env{'request.course.id'},
'grade_symb' =>$resource->symb());
- if (exists($scan_record->{'scantron.CODE'}) &&
- $scan_record->{'scantron.CODE'}) {
+ if (exists($scan_record->{'scantron.CODE'})
+ &&
+ &Apache::lonnet::validCODE($scan_record->{'scantron.CODE'})) {
$form{'CODE'}=$scan_record->{'scantron.CODE'};
} else {
$form{'CODE'}='';