diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index ac14e44..e2c8bcf 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -656,7 +656,7 @@ public function setDisplay($display_id = NULL) { } // Ensure the requested display exists. - if ($this->displayHandlers->has($display_id)) { + if (!$this->displayHandlers->has($display_id)) { $display_id = 'default'; if (!$this->displayHandlers->has($display_id)) { debug(format_string('set_display() called with invalid display ID @display.', array('@display' => $display_id)));