Commit ac01bdcf authored by Jim Berry's avatar Jim Berry Committed by Damien McKenna
Browse files

Issue #2366477 by solotandem, Andrew Answer, anrikun, Chris Matthews, RenatoG:...

Issue #2366477 by solotandem, Andrew Answer, anrikun, Chris Matthews, RenatoG: Enable argument substitution in preview with other query plugin classes.
parent d1302a2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,7 +200,7 @@ function views_ui_preview($view, $display_id, $args = array()) {
          // Only the SQL default class has a method getArguments.
          $quoted = array();

          if (get_class($view->query) == 'views_plugin_query_default') {
          if ($view->query instanceof views_plugin_query_default) {
            $quoted = $query->getArguments();
            $connection = Database::getConnection();
            foreach ($quoted as $key => $val) {