diff --git a/core/modules/file/file.module b/core/modules/file/file.module index a6fc3f6..d0bfe07 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1220,7 +1220,6 @@ function file_managed_file_save_upload($element, FormStateInterface $form_state) function template_preprocess_file_managed_file(&$variables) { $element = $variables['element']; - $variables['attributes'] = []; if (isset($element['#id'])) { $variables['attributes']['id'] = $element['#id']; } diff --git a/core/modules/system/src/Tests/Form/FormTest.php b/core/modules/system/src/Tests/Form/FormTest.php index 4b8d042..08d0866 100644 --- a/core/modules/system/src/Tests/Form/FormTest.php +++ b/core/modules/system/src/Tests/Form/FormTest.php @@ -607,7 +607,7 @@ public function testDisabledElements() { // All the elements should be marked as disabled, including the ones below // the disabled container. $actual_count = count($disabled_elements); - $expected_count = 42; + $expected_count = 43; $this->assertEqual($actual_count, $expected_count, SafeMarkup::format('Found @actual elements with disabled property (expected @expected).', [ '@actual' => count($disabled_elements), '@expected' => $expected_count,