version 1.596.2.12.2.58, 2021/12/17 15:22:13
|
version 1.596.2.12.2.59, 2021/12/17 20:20:14
|
Line 5669 sub updateGradeByPage {
|
Line 5669 sub updateGradeByPage {
|
my @displayPts=(); |
my @displayPts=(); |
my %aggregate = (); |
my %aggregate = (); |
my $aggregateflag = 0; |
my $aggregateflag = 0; |
|
my %queueable; |
if ($env{'form.HIDE'.$prob}) { |
if ($env{'form.HIDE'.$prob}) { |
my %record = &Apache::lonnet::restore($symbx,$env{'request.course.id'},$udom,$uname); |
my %record = &Apache::lonnet::restore($symbx,$env{'request.course.id'},$udom,$uname); |
my ($version,$parts) = split(/:/,$env{'form.HIDE'.$prob},2); |
my ($version,$parts) = split(/:/,$env{'form.HIDE'.$prob},2); |
Line 5678 sub updateGradeByPage {
|
Line 5679 sub updateGradeByPage {
|
foreach my $partid (@{$parts}) { |
foreach my $partid (@{$parts}) { |
my $newpts = $env{'form.GD_BOX'.$question.'_'.$partid}; |
my $newpts = $env{'form.GD_BOX'.$question.'_'.$partid}; |
my $oldpts = $env{'form.oldpts'.$question.'_'.$partid}; |
my $oldpts = $env{'form.oldpts'.$question.'_'.$partid}; |
my @types = $curRes->responseType($part); |
my @types = $curRes->responseType($partid); |
if (grep(/^essay$/,@types)) { |
if (grep(/^essay$/,@types)) { |
$queueable{$partid} = 1; |
$queueable{$partid} = 1; |
} else { |
} else { |
my @ids = $curRes->responseIds($part); |
my @ids = $curRes->responseIds($partid); |
for (my $i=0; $i < scalar(@ids); $i++) { |
for (my $i=0; $i < scalar(@ids); $i++) { |
my $hndgrd = &Apache::lonnet::EXT('resource.'.$part.'_'.$ids[$i]. |
my $hndgrd = &Apache::lonnet::EXT('resource.'.$partid.'_'.$ids[$i]. |
'.handgrade',$symb); |
'.handgrade',$symb); |
if (lc($hndgrd) eq 'yes') { |
if (lc($hndgrd) eq 'yes') { |
$queueable{$partid} = 1; |
$queueable{$partid} = 1; |