You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Flexible layout with a Clone field to the Component: Questions field.
The Component: Questions field then clones itself within the Answer repeater.
When adding a question and answer, it shows the Questions repeater however if I then add a question and answer, the Questions repeater no longer shows:
To Reproduce
Steps to reproduce the behavior:
Go to ACF > Tools, import attached json.
Go to ACF > Field Groups.
Create new field.
Add Clone field, called Questions and select "All fields from Component: Questions"
Click Save.
Go to Posts > Add New.
Click on Add Question.
Click on Add Answer
Click on Add Question.
Expected behavior
Questions repeater will be cloned along with the other fields.
To replicate this issue, you don't need to go that far.
Repeater
---- Clone
-------- Clone
Will also replicate the issue.
Seems related to how clones are handled inside repeaters.
See get_cloned_fields function in the clone field is hitting the if ( isset( $this->cloning[ $field['key'] ] ) ) check for some reason, possibly due to the repeater?
Describe the bug
Questions (Repeater)
-- Question (Text)
---- Answers (Repeater)
------ Answer (Text)
-------- Questions (Clone Questions)
I have a Flexible layout with a Clone field to the Component: Questions field.
The Component: Questions field then clones itself within the Answer repeater.
When adding a question and answer, it shows the Questions repeater however if I then add a question and answer, the Questions repeater no longer shows:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Questions repeater will be cloned along with the other fields.
Code
Version Information:
The text was updated successfully, but these errors were encountered: