Commit 5f466127 authored by Marcin Grabias's avatar Marcin Grabias
Browse files

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

Issue #3222477 by Rajab Natshah, hughworm, kkasson, Graber, Qusai Taha: Fix broken Pager when Items Per Page is exposed
parent 934d0963
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -353,6 +353,10 @@ class ViewsBulkOperationsActionProcessor implements ViewsBulkOperationsActionPro
    // query. Give those modules the opportunity to alter the query again.
    $this->view->query->alter($this->view);

    // Use a different pager ID so we don't break the real pager.
    $pager = $this->view->getPager();
    $pager->options['id'] = 1000;

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