Commit 4f65b642 authored by Sadashiv Dalvi's avatar Sadashiv Dalvi
Browse files

Issue #3249865: Administrator not able to create accounts

parent 7ddea5ac
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -21,12 +21,12 @@ function otp_form_user_register_form_alter(&$form, \Drupal\Core\Form\FormStateIn
      );
      unset($_GET['destination']);
    }
  }
    // We remove save function call and handle it internally.
    if (($key = array_search('::save', $form['actions']['submit']['#submit'])) !== false) {
      unset($form['actions']['submit']['#submit'][$key]);
    }
  }
}

/**
 * Implements hook_form_id_alter().