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
2de13706
Commit
2de13706
authored
May 21, 2013
by
alexpott
Browse files
Issue
#1998992
by damiankloip, andypost: Typo in FieldOverview.php.
parent
91e164e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php
View file @
2de13706
...
...
@@ -132,7 +132,7 @@ public function buildForm(array $form, array &$form_state, $entity_type = NULL,
),
'widget_type'
=>
array
(
'#type'
=>
'link'
,
'#title'
=>
$widget_configuration
?
$widget_types
[
$widget_configuration
[
'type'
]][
'label'
]
:
$widget_types
[
'hiden'
][
'label'
],
'#title'
=>
$widget_configuration
?
$widget_types
[
$widget_configuration
[
'type'
]][
'label'
]
:
$widget_types
[
'hid
d
en'
][
'label'
],
'#href'
=>
$admin_field_path
.
'/widget-type'
,
'#options'
=>
array
(
'attributes'
=>
array
(
'title'
=>
t
(
'Change widget type.'
))),
),
...
...
core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
View file @
2de13706
...
...
@@ -422,6 +422,15 @@ function testHiddenFields() {
$bundle_path
=
'admin/structure/types/manage/article/fields/'
;
$this
->
drupalGet
(
$bundle_path
);
$this
->
assertFalse
(
$this
->
xpath
(
'//select[@id="edit-add-existing-field-field-name"]//option[@value=:field_name]'
,
array
(
':field_name'
=>
$field_name
)),
"The 're-use existing field' select respects field types 'no_ui' property."
);
// Remove the form display component to check the fallback label.
entity_get_form_display
(
'node'
,
$this
->
type
,
'default'
)
->
removeComponent
(
$field_name
)
->
save
();
$this
->
drupalGet
(
'admin/structure/types/manage/'
.
$this
->
type
.
'/fields/'
);
$this
->
assertLinkByHref
(
url
(
'admin/structure/types/manage/'
.
$this
->
type
.
'/fields/node.'
.
$this
->
type
.
'.'
.
$field_name
.
'/widget-type'
));
$this
->
assertLink
(
'- Hidden -'
);
}
/**
...
...
Write
Preview
Supports
Markdown
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