-
Notifications
You must be signed in to change notification settings - Fork 824
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
ENH allow stacked messages on FormMessage #10966
ENH allow stacked messages on FormMessage #10966
Conversation
8b026c1
to
e765823
Compare
Also FYI this has prompted me to make this issue for CMS 6 |
Hah yes that was definitely coming, I was reluctant to turn this into an API-breaking change but I think that would definitely be the best long-term approach. |
6329397
to
e90de56
Compare
Think I've managed to get my conditions in the right order now 😅 |
e90de56
to
13fc402
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.
Looking good. Just need to make CI happy now. There's a suggestion below about making the phpunit job happy, and the lint job I think speak for itself.
13fc402
to
4e7caa7
Compare
4e7caa7
to
a0cbebb
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.
Looks great and does what it says on the tin. Thanks!
This will be included in the Silverstripe CMS 5.2.0 release. |
Fixes #10270
Adds a new method:
FormMessage::appendMessage()
which attempts to stack messages if it can, falling back to the current behaviour of setting the message if there's a mismatch.