Commit 2de13706 authored by alexpott's avatar alexpott

Issue #1998992 by damiankloip, andypost: Typo in FieldOverview.php.

parent 91e164e6
......@@ -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['hidden']['label'],
'#href' => $admin_field_path . '/widget-type',
'#options' => array('attributes' => array('title' => t('Change widget type.'))),
),
......
......@@ -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 -');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment