Closed (fixed)
Project:
Display Suite
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2021 at 09:46 UTC
Updated:
9 Sep 2022 at 14:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
swentel commentedComment #4
swentel commentedComment #6
swentel commentedComment #8
swentel commentedCommitted, no release yet because I want to get #3025928: TranslationLanguageRenderer not using row style configurations in too.
Comment #10
swentel commentedNeeds to go into 8.x-4.x as well
Comment #11
swentel commentedRemember to not break it again for older PHP versions, see #3203249: Syntax error on PHP <7.3
Comment #12
srdtwc commentedI believe that this change is causing an issue where empty "field__item" elements are created for each item, even when the UI limit is set to exclude them. These items do not contain the actual content, but are just an empty wrapper.
Comment #13
swentel commented@srdtwc Hmm that seems weird, might be related with something else.
Is everything fine in case you revert the patch?
Comment #14
rwam commentedHi @swentel,
I had the same issue as described in #12. Besides of reverting the patch I've created a quick fix. The following patch solves this weird issue of rendering empty field items which broke our preview view mode in the backend (using core/themes/seven/templates/classy/field/field.html.twig for rendering).
Ciao
Ralf
Comment #16
swentel commentedSo yes, I switched from unset to #access FALSE because that's 'cleaner' in a way, but indeed, the field item wrappers are still printed.
Using unset again is fine for me, so committed, thanks!
Comment #17
swentel commentedComment #18
swentel commented