Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
090d1b3e
Commit
090d1b3e
authored
Jul 08, 2014
by
webchick
Browse files
Issue
#2294771
by tim.plunkett | anavarre: Fixed Add views display always defaults to attachment.
parent
69c64630
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views/src/Views.php
View file @
090d1b3e
...
...
@@ -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'
];
}
}
...
...
core/modules/views_ui/src/Tests/DisplayTest.php
View file @
090d1b3e
...
...
@@ -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'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment