Skip to content

Commit

Permalink
Merge pull request openwebwork#2216 from somiaj/fix-gateway-probstatus
Browse files Browse the repository at this point in the history
Fix issue with hidden input probstatusX in gateway quizzes.
  • Loading branch information
drgrice1 authored Oct 3, 2023
2 parents e7fb7c4 + 732af44 commit 1a90307
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/ContentGenerator/GatewayQuiz.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@
% }
</div>
% # Store the problem status for continued attempts recording.
<%= hidden_field 'probstatus' . ($probOrder->[$i] + 1) => $c->{probStatus}[ $probOrder->[$i] ] =%>
<%= hidden_field 'probstatus' . $problems->[ $probOrder->[$i] ]{problem_id}
=> $c->{probStatus}[ $probOrder->[$i] ] =%>
%
<div class="gwDivider"></div>
% } else {
Expand All @@ -605,7 +606,8 @@
% }
% }
% # Store the problem status for continued attempts recording.
<%= hidden_field 'probstatus' . ($probOrder->[$i] + 1) => $c->{probStatus}[ $probOrder->[$i] ] %>
<%= hidden_field 'probstatus' . $problems->[ $probOrder->[$i] ]{problem_id}
=> $c->{probStatus}[ $probOrder->[$i] ] %>
% }
% }
%
Expand Down

0 comments on commit 1a90307

Please sign in to comment.