-
Notifications
You must be signed in to change notification settings - Fork 124
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
Can get a 'hidden' validation warning trying to clone if exp_channel_titles missing ip #3998
Comments
And in case it ever comes up- you. can see the validation errors for a form submit hacking ExpressionEngine/Model/Channel/ChannelEntry.php:
|
The IP address is kinda special because it is the property on the ChannelEntry model, it has validation, but it's not on the page - so there is no place where the error could be shown. Since this seems to currently be only one of this kind, I've added a "special case" to treat it. The error message could have been better, but that's what comes from validation service (and I think it's generic on purpose) |
…ss-validation Resolved #3998 where no proper error was shown when trying to clone entry with an invalid IP address
User was getting a weird issue trying to clone some entries- it would do a validation error message, but nothing was highlighted as invalid. After digging, it was objecting to a missing ip_address field- but there was no ip_address form field.
Digging into it, it validates the ip_address from/for the ip_address in exp_channel_titles.
Locally, I tried cloning an entry with a blank ip_address in that field- but that work. Then I stuck a 0 in the field, and boom- replicate.
Not sure why, but user had 0 in the ip_address db column for some of those entries, and if you try to clone those, it acts like there's a validation error. Though you can't see what's causing the error, because ip_address isn't a form field.
Note- tested with ip_address required to post in the settings. But no idea if that's in play- I suspect it is moot.
The text was updated successfully, but these errors were encountered: