Commit b636e3e7 authored by auth's avatar auth Committed by Jacob Rockowitz
Browse files

Issue #3273307 by auth: Set the first wizard page that should be rendered as...

Issue #3273307 by auth: Set the first wizard page that should be rendered as the first page on a wizard enabled form
parent fe94bfd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2231,7 +2231,7 @@ class WebformSubmissionForm extends ContentEntityForm {
   */
  protected function getCurrentPage(array &$form, FormStateInterface $form_state) {
    if ($form_state->get('current_page') === NULL) {
      $pages = $this->getWebform()->getPages($this->operation);
      $pages = $this->getWebform()->getPages($this->operation, $this->entity);
      if (empty($pages)) {
        $form_state->set('current_page', '');
      }