-
Notifications
You must be signed in to change notification settings - Fork 975
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
NEXT-36122 - Allow empty string in order customer comment #3710
NEXT-36122 - Allow empty string in order customer comment #3710
Conversation
I think, this would not be a good solution, we don't want to have HTML content in the DB. How about the flag |
c3eb2f3
to
4eaf978
Compare
@mstegmeyer |
No. It will be saved as When a field does not have |
4eaf978
to
dd63609
Compare
Ah I see. This is unfortunately how PHP's If you are fine with this limitation, then just fix the PHP Lint failure. |
dd63609
to
da3dd54
Compare
@Bird87ZA |
Hello, thank you for creating this pull request. Please use this issue to track the state of your pull request. |
Your PR has been merged! Thanks for your contribution 💙 |
1. Why is this change necessary?
https://issues.shopware.com/issues/NEXT-36122
2. What does this change do, exactly?
Add
AllowHtml()
flag to definition of fieldcustomerComment
inOrderDefinition
to allow sanitized HTML in customer comments.3. Describe each step to reproduce the issue or behavior.
Before pressing buy on the checkout page, enter "<3" as the customer comment. An exception is thrown. Similar behavior in the API.
4. Please link to the relevant issues (if any).
https://issues.shopware.com/issues/NEXT-36122
5. Checklist