-
Notifications
You must be signed in to change notification settings - Fork 56
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
EZP-29119: Display proper validation error message when non-image file uploaded in image FieldType #507
Conversation
By overriding |
{% set label = name|humanize %} | ||
{%- endif -%} | ||
{%- endif -%} | ||
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}{% block form_label_errors %}{{- form_errors(form) -}}{% endblock form_label_errors %}</{{ element|default('label') }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it exceeds 140 chars per line, isn't it?
089bb98
to
1befe3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional that it works once (displaying the warning)? As in second attempt to publish/save creates image w/o file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Platform v2.1.1 with diff.
0179a55
to
0179bcb
Compare
@micszo re-test is needed here. |
This PR affect all field types, especially compound fields |
@micszo ready for re-test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works again.
@mikadamczyk please merge it up |
Co-authored-by: katarzynazawada <>
This PR is also fixing doubled error messages (backend).
Checklist:
$ composer fix-cs
)