Skip to content

Commit

Permalink
Merge pull request #5358 from Sesquipedalian/verification_question
Browse files Browse the repository at this point in the history
Fixes some logic for deciding what question to print in verification
  • Loading branch information
Sesquipedalian committed Jan 23, 2019
2 parents 31ffeb3 + 3f4a4e5 commit eadb1a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Themes/default/GenericControls.template.php
Expand Up @@ -244,9 +244,10 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
else
{
// Where in the question array is this question?
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;
$qIndex = $verify_context['show_visual'] || $verify_context['can_recaptcha'] ? $i - 1 : $i;

echo '
if (isset($verify_context['questions'][$qIndex]))
echo '
<div class="smalltext">
', $verify_context['questions'][$qIndex]['q'], ':<br>
<input type="text" name="', $verify_id, '_vv[q][', $verify_context['questions'][$qIndex]['id'], ']" size="30" value="', $verify_context['questions'][$qIndex]['a'], '" ', $verify_context['questions'][$qIndex]['is_error'] ? 'style="border: 1px red solid;"' : '', ' tabindex="', $context['tabindex']++, '" required>
Expand Down

0 comments on commit eadb1a1

Please sign in to comment.