By poker10 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.92
Issue links:
Description:
The DIV wrapper on the managed_file form element contained a duplicate ID attribute and therefore this ID attribute was changed. If you were relying on this ID attribute in your theme or scripts, you will need to update it in your code to reflect this change.
This also means that classes added by the validation scripts (for example file-validation-extension-processed) will now be added to the different/correct element (see the example below).
Before:
<div id="edit-file-test-upload" class="form-managed-file file-validation-extension-processed">
<input type="file" id="edit-file-test-upload" name="files[file_test]" size="22" class="form-file">
...
</div>
After (the input keeps the same ID and the DIV wrapper loses the -upload suffix):
<div id="edit-file-test" class="form-managed-file">
<input type="file" id="edit-file-test-upload" name="files[file_test]" size="22" class="form-file file-validation-extension-processed">
...
</div>
Impacts:
Module developers
Themers