version 1.786, 2021/12/17 15:16:51
|
version 1.787, 2021/12/17 20:10:21
|
Line 5731 sub updateGradeByPage {
|
Line 5731 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 5740 sub updateGradeByPage {
|
Line 5741 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; |