Issue #2507053 by aneek, joshi.rohit100, tstoeckler, tim.plunkett, Eli-T, yoroy: Configuration Single export form should not have REQUIRED (form-required) attribute
parent
ac24ea6426
commit
e374c8821b
|
@ -105,7 +105,6 @@ class ConfigSingleExportForm extends FormBase {
|
|||
'#type' => 'select',
|
||||
'#options' => $this->findConfiguration($default_type),
|
||||
'#default_value' => $config_name,
|
||||
'#required' => TRUE,
|
||||
'#prefix' => '<div id="edit-config-type-wrapper">',
|
||||
'#suffix' => '</div>',
|
||||
'#ajax' => array(
|
||||
|
@ -118,7 +117,6 @@ class ConfigSingleExportForm extends FormBase {
|
|||
'#title' => $this->t('Here is your configuration:'),
|
||||
'#type' => 'textarea',
|
||||
'#rows' => 24,
|
||||
'#required' => TRUE,
|
||||
'#prefix' => '<div id="edit-export-wrapper">',
|
||||
'#suffix' => '</div>',
|
||||
);
|
||||
|
|
|
@ -82,6 +82,10 @@ class ConfigExportUITest extends WebTestBase {
|
|||
$file_contents = file_get_contents(file_directory_temp() . '/' . 'system.maintenance.yml');
|
||||
$exported = Yaml::decode($file_contents);
|
||||
$this->assertNotIdentical($exported['message'], 'Foo');
|
||||
|
||||
// Check the single export form doesn't have "form-required" elements.
|
||||
$this->drupalGet('admin/config/development/configuration/single/export');
|
||||
$this->assertNoRaw('js-form-required form-required', 'No form required fields are found.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue