Skip to content

Remove empty content elements in pre submit - #199

Merged
GSadee merged 3 commits into
Sylius:1.2from
jkindly:bug/fix-moving-elements
Jul 22, 2026
Merged

Remove empty content elements in pre submit#199
GSadee merged 3 commits into
Sylius:1.2from
jkindly:bug/fix-moving-elements

Conversation

@jkindly

@jkindly jkindly commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets completion of #197
License MIT

A live delete can leave a stray collection entry with an empty type behind (the DOM row is not always removed before the form is submitted). Such an entry has no resolvable configuration form, which would raise "This form should not contain extra fields". Drop these entries before the collection binds them, so deletion results in the intended, valid state.

This Pull Request also contains Behat improvements.

@jkindly
jkindly marked this pull request as ready for review July 22, 2026 07:32
@jkindly
jkindly requested a review from a team as a code owner July 22, 2026 07:32
@GSadee GSadee added Behat Issues and PRs aimed at improving Behat usage. Bug Confirmed bugs or bugfixes. labels Jul 22, 2026
@GSadee
GSadee merged commit 6ed4d97 into Sylius:1.2 Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Behat Issues and PRs aimed at improving Behat usage. Bug Confirmed bugs or bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants