Issue Bug Closed

#99332Form: Fields are marked as deleted when created in Container Elements

Maximilian Ziermaier 12/10/22, 18:13 updated 06/09/24, 09:44

Description

When creating a new empty form, newly inserted fields are marked as ‘deleted’ if they are inside a form container element like “Container” or “Grid: Row”.

The fields are still displayed and processed normally in the backend and frontend.

Either this logic is not clear to me, or it is a bug.

Attached is a newly created test form in which text-2 is incorrectly marked as deleted.
renderingOptions: fieldState: text-2: renderingOptions: deleted: 1

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 4

History 6

  1. Maximilian Ziermaier changed attached test.form.yaml 12/10/22, 18:22

  2. Riccardo De Contardi commented and changed status New Needs Feedback 06/08/24, 21:02

    I am not able to reproduce it even on TYPO3 11.5.37

    Could you add a step-by-step tutorial? Thank you.

  3. Maximilian Ziermaier commented and changed attached Step-by-step.txt attached withforms2db.form.yaml attached withoutforms2db.form.yaml Tags form yaml field container deleted form yaml field container deleted (project zwr) 06/09/24, 09:19

    It’s been a long time…
    I looked up the project from back then and the problem is still there.
    But it is obviously not due to the core form extension, but to the extension form_to_database (V2.1.2).
    If I deactivate the form_to_database extension, the problem no longer exists.
    Sorry that I did not recognize this immediately.
    But thank you for your time and effort.

    But for the documentation, I have attached the step-by-step instructions and the results with and without the form_to_database extension.

  4. Riccardo De Contardi commented 06/09/24, 09:22

    Thank you for your kind and quick answer; if you agree, I’d close this issue as non-core related, do you agree?

  5. Maximilian Ziermaier commented 06/09/24, 09:41

    Yes, please close the issue.

    Also for Documentation:
    I just saw that this behavior has been fixed in the version (2.2.0) of form_to_database:

    https://gitlab.com/lavitto/typo3-form-to-database/-/blob/master/CHANGELOG.md?ref_type=heads
    V2.2.0:
    [BUGFIX] Nested elements should work. Fixed nested fields always marked deleted.
  6. Riccardo De Contardi commented and changed status Needs Feedback Closed target version 06/09/24, 09:44

    Maximilian Ziermaier, thank you again.

    Closing this issue in agreement with the reporter as non-core related.