Skip to content
Snippets Groups Projects

Resolve #3238915 "Refactor if feasible"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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.
Loading