Skip to content

Conversation

@mjauvin
Copy link
Member

@mjauvin mjauvin commented Jan 25, 2025

Fixes #1290

@mjauvin mjauvin added the maintenance PRs that fix bugs, are translation changes or make only minor changes label Jan 25, 2025
@mjauvin mjauvin added this to the 1.2.8 milestone Jan 25, 2025
@mjauvin mjauvin requested a review from LukeTowers January 25, 2025 05:27
@mjauvin mjauvin self-assigned this Jan 25, 2025
@LukeTowers LukeTowers changed the title Fix empty repeater save value Repeater: Always send a value in the Form data Jan 25, 2025
@AIC-BV
Copy link
Contributor

AIC-BV commented Jan 27, 2025

I'm getting undefined $field variable in _repeater.php

Oh, I have ofcourse the MLRepeater!
And only copying the Repeater.php formwidget does not seem to solve the problem

@mjauvin
Copy link
Member Author

mjauvin commented Jan 27, 2025

I'm getting undefined $field variable in _repeater.php

Oh, I have ofcourse the MLRepeater! And only copying the Repeater.php formwidget does not seem to solve the problem

Sorry, I screwed up... latest commit should fix it.

@AIC-BV
Copy link
Contributor

AIC-BV commented Jan 28, 2025

Fixed! Thanks

@LukeTowers LukeTowers merged commit 9f38dff into develop Jan 28, 2025
13 checks passed
@LukeTowers LukeTowers deleted the fix-empty-repeater branch January 28, 2025 16:15
LukeTowers pushed a commit to wintercms/wn-blocks-plugin that referenced this pull request Feb 13, 2025
Replicates fix that was done for repeater formwidget (see wintercms/winter#1300)

This also prevents an infinite loop when calling renderBlocks() on empty blocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PRs that fix bugs, are translation changes or make only minor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.2.7 cannot save empty repeater

4 participants