Skip to content

Fix incorrect step count in multi-step form#92

Merged
Toflar merged 5 commits into
mainfrom
bugfix/number-of-steps
May 19, 2025
Merged

Fix incorrect step count in multi-step form#92
Toflar merged 5 commits into
mainfrom
bugfix/number-of-steps

Conversation

@qzminski

Copy link
Copy Markdown
Member

Ensure the number of real form steps is calculated based on actual page breaks, not just the keys in $this->formFieldsPerStep. This resolves issues where additional wrappers (e.g., fieldsets) or misordered page breaks caused extra, invalid steps to be included.

Ensure the number of real form steps is calculated based on actual page breaks, not just the keys in $this->formFieldsPerStep. This resolves issues where additional wrappers (e.g., fieldsets) or misordered page breaks caused extra, invalid steps to be included.
@qzminski qzminski requested a review from Toflar May 19, 2025 07:58
@qzminski qzminski self-assigned this May 19, 2025

@Toflar Toflar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we fix it in a way that we can rely on $this->formFieldsPerStep containing the valid info? There are other methods relying on $this->formFieldsPerStep.

Comment thread src/FormManager.php
Comment thread src/FormManager.php Outdated
qzminski and others added 2 commits May 19, 2025 10:11
Co-authored-by: Yanick Witschi <yanick.witschi@terminal42.ch>
Comment thread src/FormManager.php Outdated
@Toflar Toflar merged commit 18be16e into main May 19, 2025
7 checks passed
@Toflar Toflar deleted the bugfix/number-of-steps branch May 19, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants