diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 3affc93..5b13658 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -2212,7 +2212,8 @@ public function serialize() { $this->current_page, $this->exposed_input, $this->exposed_data, - $this->dom_id + $this->dom_id, + $this->executed, ]); } @@ -2220,7 +2221,7 @@ public function serialize() { * {@inheritdoc} */ public function unserialize($serialized) { - list($storage_id, $current_display, $args, $current_page, $exposed_input, $exposed_data, $dom_id) = unserialize($serialized); + list($storage_id, $current_display, $args, $current_page, $exposed_input, $exposed_data, $dom_id, $executed) = unserialize($serialized); $this->setRequest(\Drupal::request()); $this->user = \Drupal::currentUser(); @@ -2231,6 +2232,7 @@ public function unserialize($serialized) { $this->setCurrentPage($current_page); $this->setExposedInput($exposed_input); $this->exposed_data = $exposed_data; + $this->dom_id = $dom_id; // Rebuild the exposed raw input. $exclude = array('submit', 'form_build_id', 'form_id', 'form_token', 'exposed_form_plugin', 'reset'); @@ -2241,6 +2243,11 @@ public function unserialize($serialized) { } $this->initHandlers(); + + // If the display was previously executed, execute it now. + if ($executed) { + $this->execute($this->current_display); + } } }