summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-09-27 13:41:59 +0200
committerAlex Pott2015-09-27 13:41:59 +0200
commite374c8821b704aeed47b252c31c8c5d81f19010f (patch)
tree7fa2bf8afe091c92942a47ab407e7ccf89b33fa9
parentac24ea64262617d13fa40e3924013d890a87af92 (diff)
Issue #2507053 by aneek, joshi.rohit100, tstoeckler, tim.plunkett, Eli-T, yoroy: Configuration Single export form should not have REQUIRED (form-required) attribute
-rw-r--r--core/modules/config/src/Form/ConfigSingleExportForm.php2
-rw-r--r--core/modules/config/src/Tests/ConfigExportUITest.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/core/modules/config/src/Form/ConfigSingleExportForm.php b/core/modules/config/src/Form/ConfigSingleExportForm.php
index 440de7f..2426b90 100644
--- a/core/modules/config/src/Form/ConfigSingleExportForm.php
+++ b/core/modules/config/src/Form/ConfigSingleExportForm.php
@@ -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>',
);
diff --git a/core/modules/config/src/Tests/ConfigExportUITest.php b/core/modules/config/src/Tests/ConfigExportUITest.php
index 3c672da..f6840ef 100644
--- a/core/modules/config/src/Tests/ConfigExportUITest.php
+++ b/core/modules/config/src/Tests/ConfigExportUITest.php
@@ -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.');
}
}