#95465A record is saved even if a field is not valid
Description
If in the TCA configuration a field has the value “email” as “eval” and an invalid email address is entered, the error message is displayed but the record is saved anyway.
I believe, however, the record should not be stored in the database
Same thing for a field configured with eval = “required”. For example, if you develop the “processDatamap_postProcessFieldArray” hook in which, for some reason, the value of the field is set to an empty string, after clicking on “save” the form presents the error but the record is saved in the database
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Robert von Hackwitz changed subject
Un record viene salvato anche se un campo non è validoA record is saved even if a field is not valid 10/04/21, 14:13 -
Benni Mack changed tracker
FeatureBug TYPO3 Version 10 10/07/21, 09:27 -
Benni Mack changed category 10/13/21, 12:47
-
Garvin Hicking commented and changed status
NewClosed 07/08/24, 19:11
With recent TYPO3 versions this eval=email has ben superseded with type=email. Since TYPO3v13, evaluation of a field will also properly make a record not saveable, if an invalid mail has been entered. TYPO3v12 had this still differently. Since many (JavaScript) components were involved for this, the change itself is not easily able to be backported to older versions.
Because of this, I will close this issue for now. Ff you feel this is a mistake or have additional feedback, please get in touch. You can also create a follow-up issue. Thank you for the report, and sorry for this taking us so long to reply :)