-
Notifications
You must be signed in to change notification settings - Fork 118
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
Live preview issue with relationship child tags #3481
Comments
I have tested this and can confirm the issue also exists without using field groups, in 7.3 as well as 7.2.12 Additionally, with front-end editing enabled, unparsed tag shows up in template: |
Performed investigation. Because LivePreview query is based on POSTed data, it fetches the first level of relationships (because the relationship field is in POST), but it does not know anything further (2, 3 levels of relationships etc). It also happens with "pure" relationship field and not related to Fluid. We would need to change how LivePreview works in order to get this fixed, and presumably this is going to be big change |
Has anyone tested this with Grid yet? I just encountered an issue in Bloqs where Relationship fields were not working in Live Preview. So I tested it in Grid too and got a similar result. I'm 99% sure this used to work because I have code in Bloqs using the relationships_query hook to fetch the data and do some stuff so it worked with Publisher (Publisher would hi-jack the preview data), but now none of that appears to be working. update: a little more info... This is what the save method in Bloqs has looked like for... as long as I can remember. Since 2016 it's always returned
edit again: Did something change in EE so it calls the |
I tracked my last comment down to this commit where now apparently all FTs are getting their I had to update the save() method in Bloqs to this:
Where the
Note: I might just be able to have have |
Problem- live preview differs from actual output in a really obscure case where you are showing a related entry's child' data.
My tag looks like:
My 'tiny' channel has 1 field in it called 'tiny_fluid', which has 1 field in it- a relationship field called 'my_rel'.
I make an entry in 'tiny', use the my tiny_fluid group once, select 2 related entries, save:
One of those related entries 'Bandcamp' has 2 related entries in its 'my_related_field_in_child_entry' relationship field. Those children show up when viewing the entry on the frontend, but in the live preview, they do not. I'm thinking one of the two displays must be due to a bug, and I think it's the live preview.
The text was updated successfully, but these errors were encountered: