SOLVED: Query Loop: ACF Repeater IN ACF Repeater (only 1.9.1)

Browser: Chrome 110
OS: Windows
URL: Local
Video: Jam :movie_camera:

I created ACF Options page.
Then I added Repeater which has two fields: Name, Repeater (internal).
Then I added one field to the internal Repeater: Name.

Next, I added the data for the test:

  • Repeater (1 level)
    — Title: “Basic”
    — Repeater (2 level):
    — — TItle: “HTML”
    — — TItle: “CSS”
    — — Title: “JS”
  • Repeater (1 level)
    — Title: “Pro”
    — Repeater (2 level):
    — — TItle: “WebPack”
    — — TItle: “Vite”
  • Repeater (1 level)
    — Title: “Free”
    — Repeater (2 level):
    — — TItle: “Axios”
    — — TItle: “Bun”

When I create a Div with Query Loop of the first repeater, and inside the Div with Query Loop of the second repeater, the first repeater works correctly. But the second one shows the data of the second repeater elements from the first element of the first repeater.

On version 1.9.0 everything works correctly.
Probably it’s all about the innovations for Query Loop in Bricks 1.9.1
I looked at the code of the new version and compared it to 1.9.0, there are a lot of new features related to this functionality.

1 Like

I have exactly the same issue.

In v1.9.1., the repeater just shows first item’s subrepeater content again and again:

v1.9.1:

v1.9.0 is correctly showing each subrepeater’s data:

Cheers

Patric

Hi @Romon & @Patric,

This is most likely related to this report: WAIT: ACF - repeater, flexible fields, groups, condtions - all broken - page is blank - #7 by Patric which we’re currently investigating. The issue seems to be related to nested query loops. I’m hesitant to flag this as a duplicate until we’re sure though.

3 Likes

Hi @Romon & @Patric,

Can you please share temporary admin access to help@bricksbuilder.io with a link to this thread using the same email address you used to purchase Bricks?

Please also include where the issue can be observed on the website as we have a potential fix that we’ll upload so we can verify that it works for you.

Hi Charaf

sent.

Cheers

Patric

Sorry i can’t, because I am working on local server

I think Charaf was able to fix it in my staging site, so the fix should be available soon.

2 Likes

Fixed in 1.9.1.1
Closed