Commit 023a3cd0 authored by Rajab Natshah's avatar Rajab Natshah Committed by Marcin Grabias
Browse files

Issue #3222477 by Rajab Natshah, hughworm, Graber, kkasson, Qusai Taha: Fix...

Issue #3222477 by Rajab Natshah, hughworm, Graber, kkasson, Qusai Taha: Fix broken Pager when Items Per Page is exposed
parent 4c2cb08b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -354,8 +354,11 @@ class ViewsBulkOperationsActionProcessor implements ViewsBulkOperationsActionPro
    $this->view->query->alter($this->view);

    // Use a different pager ID so we don't break the real pager.
    // @todo Check if we can use something else to set this value.
    $pager = $this->view->getPager();
    $pager->options['id'] = 1000;
    if (array_key_exists('id', $pager->options)) {
      $pager->options['id'] += (1000 + $this->view->getItemsPerPage());
    }

    // Execute the view.
    $this->moduleHandler->invokeAll('views_pre_execute', [$this->view]);