Project

General

Profile

Actions

Bug #94090

closed

Unexpected form validation with fal image

Added by Daniel Kempf over 3 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
TCA Form-Validation
Complexity:
Is Regression:
Sprint Focus:

Description

If you have mandatory fields and fal image elements on the same form, you can choose and save an image even though you didn't fill in the mandatory field. Then it is also possible to close the form although you didn't fill in the mandatory field.

I would expect, that as long as mandatory fields are not filled in, it should not be possible to save (new) form data. Otherwise it gives you a undefined state. The user believes everything is alright and does not scrutinize the saved data anymore.

The question now arises whether this behavior is wanted?

This issue came out also in connection with https://forge.typo3.org/issues/94050 .


Files

fal-image-and-mandatory-input-field.jpg (85.1 KB) fal-image-and-mandatory-input-field.jpg Example Daniel Kempf, 2021-05-07 12:29

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #94050: Do not reload form on change if mandatory fields are not filled inNew2021-05-04

Actions
Related to TYPO3 Core - Bug #94110: TCA setting minitems + maxitems to 1 causing all validations to failClosed2021-05-11

Actions
Actions #1

Updated by Sebastian Swan over 3 years ago

I'm having the same issue. I have a content element with several required text fields and a required FAL image field. Once I select an image, the required mark/check for the other fields disappears and I'm able to save the TCA-Form even though they are still empty.

I did a quick check and it seems this was introduced with 10.4.13, as it is still working when I downgrade to 10.4.12.

Possibly related to: https://forge.typo3.org/issues/94110

Actions #2

Updated by Georg Ringer 5 months ago

  • Related to Bug #94050: Do not reload form on change if mandatory fields are not filled in added
Actions #3

Updated by Georg Ringer 5 months ago

  • Related to Bug #94110: TCA setting minitems + maxitems to 1 causing all validations to fail added
Actions #4

Updated by Georg Ringer 5 months ago

  • Status changed from New to Closed

I am closing this issue as #94110 has been resolved. there are still situations like switching types where an invalid state is possible but this is handled in 94050

Actions

Also available in: Atom PDF