Skip to content
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

[4.x] Fix issue with Set Previews in Bard #9422

Merged
merged 2 commits into from Jan 31, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue with Set Previews in Bard where fields returning PreviewHtml objects would be converted into "normal" objects when the previews are cloned here.

You can easily reproduce this with an Assets field & Forms field in a Bard set. When you change/remove the form, the preview for the Asset field in the set shows you the JSON rather than the expected preview output.

I've copied the fix for this from how we do the same thing on Replicator sets. I've also removed the getReplicatorPreviewText methods from the Asset & List fieldtypes since they're no longer used.

Fixes #9174.

@jasonvarga jasonvarga merged commit b42f996 into 4.x Jan 31, 2024
34 checks passed
@jasonvarga jasonvarga deleted the fix/replicator-preview-issues branch January 31, 2024 14:09
@grantholle
Copy link
Contributor

Is there a way to still show a preview now? Like, to designate a field to show? Because now my users are complaining about not knowing what the content is

@grantholle
Copy link
Contributor

I do have "Preview" enabled on the fields I want, FYI

@jasonvarga
Copy link
Member

This PR doesn't remove previews. If you're running into a problem, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form field in a bard set breaks image field html preview
3 participants