Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for textareas #4421

Merged
merged 3 commits into from Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-3.0.md
Expand Up @@ -16,6 +16,7 @@
- [CoreInstallerBundle] Fix upgrade procedure (#4406).
- [CoreInstallerBundle] Remove blocks with properties that cannot be unserialized on upgrade.
- [CoreInstallerBundle] Remove legacy modvars beginning with 'systemplugin'.
- [FormExtensionBundle] Fix textarea width problem (#4421).
- [HookBundle] Add missing argument for assigning object ID to `FormAwareHook` constructor.
- [HookBundle] Avoid JS error when editing hook provider which is not a subscriber, too.
- [Admin] Fix error when extension is not categorized.
Expand Down
Expand Up @@ -21,5 +21,6 @@

{# overrides textarea_widget to catch array to string conversion issues when a form returns with errors #}
{%- block textarea_widget -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) %}
<textarea {{ block('widget_attributes') }}>{{ value is iterable ? value|join("\n") : value }}</textarea>
{%- endblock textarea_widget -%}