-
Notifications
You must be signed in to change notification settings - Fork 2
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
Repeater item labels not displayed for nested Repeaters #173
Comments
I can't duplicate this one. My nested repeater has the proper label. However, I see in your screenshot that the nested repeater label is "Test nested repeater" and the title is "Green" – what's going on there? Does this repeater item just need to be saved? |
This is the bug that I am describing here. The repeater item label should be "Green (Round)" but instead the repeater item label shows the label of the repeater field itself. The repeater item has been saved. I can reproduce this issue on fresh PW 3.0.51 installation. I have a demo site online I can give you access to if that helps. |
Just tried again after changing my label format and field names to be the same as yours, but still can't duplicate it. What are your repeater settings for both repeaters for these?
My settings are the defaults for all of these, which for the first 2 (radio buttons) means the first item is checked, and for the second two (checkboxes) means neither is checked. |
I recently experienced this issue and avoided it by disabling "Repeater dynamic loading (AJAX) in editor" for the parent repeater field. |
I recently bumped an installation from 3.0.42 to 3.0.62 and found this issue - and like @AndZyk, I was able to "fix" the issue by disabling "Repeater dynamic loading (AJAX) in editor" for the parent. The console prints: |
I have tracked this problem back to this commit. The problematic part seems to be that $allowRender is declared with the "static" keyword. So when a nested repeater item label is rendered $allowRender can already be "false" from when a previous repeater item called the function. Not sure why the variable should be static - shouldn't it be evaluated to true or false freshly each time the renderRepeaterLabel() method is called? Removing the static keyword seems to fix the issue. |
+1. Disabling "Repeater dynamic loading (AJAX) in editor" for the parent repeater field solved the issue as mentioned above. ProcessWire 3.0.74 |
…wire-issues#393 nested repeater labels
Is this commit in any of the dev builds? |
There is the one Ryan just referenced above - is that what you are looking for? |
Thanks for the fix. |
@adrianbj sorry, I should've looked harder! I wasn't sure if it had been pulled into the dev branch with a new version number. I see that it's apart of 3.0.90! 💃 thanks, @ryancramerdesign! |
Short description of the issue
If a Repeater is nested inside another Repeater, any custom item label for the nested repeater isn't displayed: the name/title of the nested repeater field is displayed instead.
Optional: Screenshots/Links that demonstrate the issue
Steps to reproduce the issue
Setup/Environment
The text was updated successfully, but these errors were encountered: