diff --git a/core/lib/Drupal/Core/Form/ConfigFormBase.php b/core/lib/Drupal/Core/Form/ConfigFormBase.php index 5ed650a..985bbae 100644 --- a/core/lib/Drupal/Core/Form/ConfigFormBase.php +++ b/core/lib/Drupal/Core/Form/ConfigFormBase.php @@ -45,6 +45,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#type' => 'submit', '#value' => $this->t('Save configuration'), '#button_type' => 'primary', + '#submit' => ['::submitForm'], ); // By default, render the form using theme_system_config_form(). diff --git a/core/modules/user/src/Tests/UserAdminSettingsFormTest.php b/core/modules/user/src/Tests/UserAdminSettingsFormTest.php index 904cea4..875071e 100644 --- a/core/modules/user/src/Tests/UserAdminSettingsFormTest.php +++ b/core/modules/user/src/Tests/UserAdminSettingsFormTest.php @@ -17,6 +17,13 @@ */ class UserAdminSettingsFormTest extends SystemConfigFormTestBase { + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('translation_entity', 'user'); + protected function setUp() { parent::setUp();