version 1.69, 2012/10/12 14:08:42
|
version 1.71, 2014/03/28 15:07:01
|
Line 731 sub html_non_essay_results {
|
Line 731 sub html_non_essay_results {
|
push(@values,$response->{$original_header}); |
push(@values,$response->{$original_header}); |
} |
} |
} |
} |
|
# FIXME: Bug #6700 - Properly process multiple answer fields |
|
# Would be a good place here but the data needs to be properly |
|
# compiled somewhere before. |
|
# elsif (($resptype =~ /^(numerical|formula|custom)$/) && |
|
# (submission) && (ref)) { |
|
# de-ref...: push(@values,$response->{$original_header}); } |
} else { |
} else { |
foreach my $original_header (@$headers) { |
foreach my $original_header (@$headers) { |
if ($original_header eq 'Time') { |
if ($original_header eq 'Time') { |
push(@values,&Apache::lonlocal::locallocaltime($response->{$original_header})); |
push(@values,&Apache::lonlocal::locallocaltime($response->{$original_header})); |
|
} elsif (($original_header eq 'Submission') && |
|
!($resptype =~ /^(radiobutton|option|match|rank)$/)) { |
|
# encode all submissions which have not been encoded above |
|
push(@values,&HTML::Entities::encode($response->{$original_header},'<>&"')); |
|
} elsif (($original_header eq 'Correct') && |
|
($resptype eq 'radiobutton')) { |
|
# encode foil separators |
|
push(@values,&HTML::Entities::encode($response->{$original_header},'&')); |
} else { |
} else { |
# A normal column |
# A normal column |
push(@values,$response->{$original_header}); |
push(@values,$response->{$original_header}); |