Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
2de13706
Commit
2de13706
authored
May 21, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1998992
by damiankloip, andypost: Typo in FieldOverview.php.
parent
91e164e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php
core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php
+1
-1
core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
...s/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php
+9
-0
No files found.
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
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