Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixes issue 39 #54

Merged
merged 2 commits into from
Sep 11, 2019
Merged

Fixes issue 39 #54

merged 2 commits into from
Sep 11, 2019

Conversation

christopherbolt
Copy link
Contributor

Fixes issue 39 #39
It's a scope issue caused by rendering the fields in a loop resulting in the last field rendered to always be the one processed when any form submits. This solution breaks the rendering into a separate function and then just call that function in the loop.

Fixes issue 39 #39
It's a scope issue caused by rendering the fields in a loop resulting in the last field rendered to always be the one processed when any form submits. This solution breaks the rendering into a separate function and then just call that function in the loop.
@UndefinedOffset
Copy link
Owner

Thanks for the pull, just one change can you replace the uses of let with var so we maintain more compatibility. Thanks

@christopherbolt
Copy link
Contributor Author

Have updated with var instead of let as requested. Let me know if you have further suggestions.

@UndefinedOffset
Copy link
Owner

UndefinedOffset commented Sep 11, 2019

All good, I’ll do a tag next week :), thanks!

@UndefinedOffset UndefinedOffset merged commit aa12ec3 into UndefinedOffset:master Sep 11, 2019
matthewrayner pushed a commit to timezoneone/silverstripe-nocaptcha that referenced this pull request Apr 26, 2023
* Fixes issue 39

Fixes issue 39 UndefinedOffset#39
It's a scope issue caused by rendering the fields in a loop resulting in the last field rendered to always be the one processed when any form submits. This solution breaks the rendering into a separate function and then just call that function in the loop.

* Replace let with var for compatibility

(cherry picked from commit aa12ec3)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants