Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copy block and duplicate of form fields #377

Merged

Conversation

alexander-schranz
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #336
Related issues/PRs #issuenum
License MIT

What's in this PR?

Fix copy block for form manager

Why?

Currently copied field get removed as the same key is copied and key is used to find the field. If now multiple fields with the same key are copied we will ignore the second field and give it a new field.

@alexander-schranz alexander-schranz force-pushed the bugfix/copy-block-form branch 2 times, most recently from 37fa4ff to 3fa8fe3 Compare April 19, 2024 14:36
@alexander-schranz alexander-schranz changed the title Fix copy block and duplicate for form fields Fix copy block and duplicate of form fields Apr 19, 2024
@alexander-schranz alexander-schranz force-pushed the bugfix/copy-block-form branch from 5cab9c6 to 6325309 Compare May 28, 2024 06:56
@alexander-schranz
Copy link
Member Author

@martinlagler Testcase added!

@popoplanter
Copy link
Contributor

@alexander-schranz works in our project :)

@alexander-schranz alexander-schranz enabled auto-merge (squash) June 6, 2024 13:47
@alexander-schranz alexander-schranz merged commit 1ada3e6 into sulu:2.5 Jun 6, 2024
7 checks passed
@alexander-schranz alexander-schranz deleted the bugfix/copy-block-form branch June 6, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicating form fields removes original field
3 participants