diff --git a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php index 64b0f3a..91e174f 100644 --- a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php +++ b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php @@ -210,13 +210,14 @@ public function buildForm(array $form, FormStateInterface $form_state) { } $view->getStandardButtons($form, $form_state, 'views_ui_rearrange_filter_form'); + $form['actions']['add_group'] = array( '#type' => 'submit', '#value' => $this->t('Create new filter group'), '#id' => 'views-add-group', '#group' => 'add', '#ajax' => array( - 'path' => \Drupal::request()->getRequestUri(), + 'path' => $this->getRequest()->getRequestUri(), ), );