Project

General

Profile

Actions

Bug #93342

closed

Form Framework: duplicated form field identifier

Added by Richard Vey over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2021-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

Description

Description
Form fields are getting same identifier, if form definition is to big (over 50 form fields).
This only happens if the position of the form fields is changed and afterwards new form fields are getting added to the form definition.
This is resulting in duplicated identifiers and the following Error Message:

TYPO3\CMS\Form\Domain\Model\Exception\DuplicateFormElementException
A form element with identifier "text-51" is already part of the form.

The generated yaml file looks like this:

    text-51:
      type: Text
      identifier: text-51
      label: Text
      renderingOptions:
        listView: 0
        deleted: 0

...

      -
        defaultValue: ''
        type: Text
        identifier: text-51
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-43
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-44
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-50
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-45
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-46
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-47
        label: Text
      -
        defaultValue: ''
        type: Text
        identifier: text-51
        label: Text

If you add the form fields in order without changing their positions afterwards, all identifiers are unique.

The bug exists in all TYPO3 v10 versions up to TYPO3 10.4.12

Steps to reproduce
1. Install TYPO3 10.4.12
2. Create new Form
3. Create 50+ form fields, like text fields
4. Change position of several form fields
5. Add new form fields

Actual
Some form fields are getting the same identifier. Therefore you have to manually change the identifiers inside of the yaml file to get the form working.

Expected
All form fields getting unique identifiers.

Actions #1

Updated by Björn Jacob almost 3 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Björn Jacob over 2 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Björn Jacob over 2 years ago

  • Status changed from In Progress to Needs Feedback
  • Assignee set to Richard Vey

Hi there, thank you for your contribution. I tried to reproduce your issue but wasn't able to experience any problem. When did you save the form? In between the process or "never"/ at the end? I tried both, but still, no problem at all. Did you also try current master?

Actions #4

Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Richard Vey)

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF