You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a couple of websites that use their own custom validation on fields that we need to handle separately from Craft. It works perfectly on already present entries. But while creating new ones craft fails to show errors and load the edit entry view.
What happened?
Description
We have a couple of websites that use their own custom validation on fields that we need to handle separately from Craft. It works perfectly on already present entries. But while creating new ones craft fails to show errors and load the edit entry view.
Things to notice
Crafts validation triggers first
Custom validation triggers second
BUT
it only works on already saved entries. Entries that are created new will return an
NotFoundHttpException
: Entry not foundCustom validation to reproduce:
Steps to reproduce
Expected behavior
$event->isValid = false;
will tell Craft that this element is not valid and return to the corresponding element edit page.Actual behavior
NotFoundHttpException
: Entry not foundCraft CMS version
3.7.55.2
PHP version
7.4.30
Operating system and version
Linux 5.15.70-1-lts
Database type and version
MySQL 8.0.30
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.10-23)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: