mcguffin/acf-quickedit-fields

Edits to nested Flexible Content required saving field group twice

kmaling opened this issue · 0 comments

I'm having an issue, which I've narrowed down to the ACF Quick Edit Fields plugin where edits made to a nested Flexible Content's Layout label do not take effect unless the Save Changes button is hit twice.

ACF Field Group Setup:

• Flexible Content field (parent) > Flexible Content layout > Flexible Content field (child) > Flexible Content layout > Flexible Content layout's label

If I update this label (in bold, above), save the Field Group, and then load a page that uses this Flexible Content layout, the label (displayed with the layout when editing the page), or add the layout to the page, the updated label isn't shown. I then have to go back to the Field Group and save it a second time; only then does the label get updated when editing a page.

For the last while, as I'm mid-project and haven't had a chance to look into the issue, I've just been making sure I save a field group twice, every time I need to save. But, I had some time this morning to look into it further and can confirm that the issue no longer appears once this plugin is disabled. If I re-enable the plugin, the issue returns. I haven't been able to test beyond that, for example, to see if other elements aren't being updated on a single save (versus saving x2), as I know some edits in other places do update with the single-save, but I can confirm/replicate the above instance whenever the plugin is enabled, so thought I'd report it here.