diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/RearrangeFilter.php index 58430c9..8a217fe 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/RearrangeFilter.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/RearrangeFilter.php @@ -206,7 +206,9 @@ public function buildForm(array $form, array &$form_state) { ); } - // Get form path + // Views provides its own custom handling of AJAX form submissions. Usually + // this happens at the same path, but custom paths may be specified in + // $form_state. $form_path = empty($form_state['path']) ? current_path() : $form_state['path']; $view->getStandardButtons($form, $form_state, 'views_ui_rearrange_filter_form');