Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The $filter argument in _webform_render_file() and other _webform_render_* callbacks is used by Form Builder to generate a raw editable version of the element. Right now we're adding the file upload help all the time, making it so if you edit a file component with Form Builder, you end up editing the file upload help. Every time you edit, more help gets appended to the description. This description should not be part of the editable configuration, so it should be skipped when $filter === FALSE.
Comment | File | Size | Author |
---|---|---|---|
webform_file_component_filter.patch | 821 bytes | quicksketch | |
Comments
Comment #2
quicksketchPushed to 7.x-4.x.
Comment #4
fenstratNeeds porting to 8.x-4.x.
Comment #5
fenstratCommitted and pushed 6ff7a78 to 8.x-4.x. Thanks!