-
Notifications
You must be signed in to change notification settings - Fork 79
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
ValidationResult::addError() doesn't show up anywhere in the UI #967
Comments
Just ran into something similar - seems to related to the changes here: #1138 . In my case the validation message isn't showing on an uploaded file thumbnail. |
Fixes silverstripe#967 introduced in silverstripe#1138
Fixes silverstripe#967 introduced in silverstripe#1138
@emteknetnz FYI I think there is still an outstanding issue when 'addError' is called on an existing asset - so its only partially closed... @GuySartorelli has some context |
Reopening this. As per the note in the issue description, this has only been resolved for new files, but is still a problem for existing files. |
Fixed in silverstripe/silverstripe-admin#1587. |
Version: 4.4.x-dev
Steps to reproduce
Add this to
Image
:Upload an image. This is successful (as expected) because the isInDB() check skips validation.
Open the image and remove the title, then try to save the image.
Expected result
The image should not save. I should see "Testing error" somewhere in an error alert.
Result
The image doesn't save (correct). No validation error is shown in the UI (bug).
This works with
$validation->addFieldError('Title', 'Testing error')
:PRs
The text was updated successfully, but these errors were encountered: