From 090d1b3e7e7200f999c3f642d04635df5574ecc8 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Tue, 8 Jul 2014 14:47:00 -0700 Subject: [PATCH] Issue #2294771 by tim.plunkett | anavarre: Fixed Add views display always defaults to attachment. --- core/modules/views/src/Views.php | 2 +- core/modules/views_ui/src/Tests/DisplayTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/views/src/Views.php b/core/modules/views/src/Views.php index daff41c8b250..61f053c1a55c 100644 --- a/core/modules/views/src/Views.php +++ b/core/modules/views/src/Views.php @@ -157,7 +157,7 @@ public static function fetchPluginNames($type, $key = NULL, array $base = array( } if (empty($plugin['no_ui']) && (empty($base) || empty($plugin['base']) || array_intersect($base, $plugin['base']))) { - $plugins[$id] = $plugin['title']; + $plugins[$id] = (string) $plugin['title']; } } diff --git a/core/modules/views_ui/src/Tests/DisplayTest.php b/core/modules/views_ui/src/Tests/DisplayTest.php index 061c4d3980a7..5473cc12dfc7 100644 --- a/core/modules/views_ui/src/Tests/DisplayTest.php +++ b/core/modules/views_ui/src/Tests/DisplayTest.php @@ -167,6 +167,7 @@ public function testLinkDisplay() { // Test the default link_url value for new display $this->drupalPostForm(NULL, array(), t('Add Block')); + $this->assertUrl('admin/structure/views/view/test_display/edit/block_2'); $this->clickLink(t('Custom URL')); $this->assertFieldByName('link_url', 'a-custom-url'); } -- GitLab