Verified Commit 2e883f7a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3299800 by shubhamporwal14@gmail.com, immaculatexavier,...

Issue #3299800 by shubhamporwal14@gmail.com, immaculatexavier, Munavijayalakshmi: generateResultsKey function under views CachePluginBase is not compatible with selectExtender

(cherry picked from commit c0d2542d)
parent 5839fb2c
Loading
Loading
Loading
Loading
+2 −2
Changes for core/modules/views/src/Plugin/views/cache/CachePluginBase.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\views\Plugin\views\PluginBase;
use Drupal\Core\Database\Query\Select;
use Drupal\Core\Database\Query\SelectInterface;
use Drupal\views\ResultRow;

/**
@@ -201,7 +201,7 @@ public function generateResultsKey() {
      foreach (['query', 'count_query'] as $index) {
        // If the default query back-end is used generate SQL query strings from
        // the query objects.
        if ($build_info[$index] instanceof Select) {
        if ($build_info[$index] instanceof SelectInterface) {
          $query = clone $build_info[$index];
          $query->preExecute();
          $build_info[$index] = [