Skip to content

Commit

Permalink
Merge pull request #2 from jenlampton/170-wont-complete
Browse files Browse the repository at this point in the history
Issue backdrop-contrib#170: Check if current page is greater than or equal to page co…
  • Loading branch information
robertgarrigos authored Dec 5, 2022
2 parents 4fe73c5 + aac7b17 commit 8a246f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webform.module
Original file line number Diff line number Diff line change
Expand Up @@ -3289,7 +3289,7 @@ function webform_client_form_pages($form, &$form_state) {
}

// The form is done if the page number is greater than the page count.
$form_state['webform_completed'] = $form_state['storage']['page_num'] > $form_state['storage']['page_count'];
$form_state['webform_completed'] = $form_state['storage']['page_num'] >= $form_state['storage']['page_count'];
}

// Inform the submit handlers that a draft will be saved.
Expand Down

0 comments on commit 8a246f5

Please sign in to comment.