Commit c164e76f authored by catch's avatar catch
Browse files

Issue #3403999 by acbramley, Primsi, LeDucDuBleuet, godotislate, Lendude:...

Issue #3403999 by acbramley, Primsi, LeDucDuBleuet, godotislate, Lendude: Exposed filter values ignored when using batch

(cherry picked from commit 7ea369d9)
parent 854adf5d
Loading
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -67,14 +67,6 @@ public function getFormId() {
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state) {
    // Don't show the form when batch operations are in progress.
    if (($batch = batch_get()) && isset($batch['current_set'])) {
      return [
        // Set the theme callback to be nothing to avoid errors in template_preprocess_views_exposed_form().
        '#theme' => '',
      ];
    }

    // Make sure that we validate because this form might be submitted
    // multiple times per page.
    $form_state->setValidationEnforced();