Verified Commit 6c5a3dca authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3117069 by Pasqualle, priyanka.sahni, smustgrave, NicklasMF: Undefined index: terms

(cherry picked from commit 1a70642d)
parent 31d4a1a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ public function buildForm(array $form, FormStateInterface $form_state, Vocabular
    // error. Ensure the form is rebuilt in the same order as the user
    // submitted.
    $user_input = $form_state->getUserInput();
    if (!empty($user_input)) {
    if (!empty($user_input['terms'])) {
      // Get the POST order.
      $order = array_flip(array_keys($user_input['terms']));
      // Update our form with the new order.