Problem/Motivation

Attempting to modify the settings of the Description field template for a taxonomy term always displays empty fields, even if the template has been edited previously.

Steps to reproduce

Enabling 'Field Templates' in the settings, if I try to modify the template of the fixed description field of a taxonomy term, the input form in the Display Management allows me to enter values but does not display the previously entered values.
For example, if I set 'Expert' as the field template and enter new css classes in the Outer wrapper, these are applied to the field.
However, if I reopen the field for editing the class, the previously entered parameters are not displayed. I can see only empty fields.

CommentFileSizeAuthor
#5 3438870-4patch_applied.mp41.82 MBfulya.ozsan
#4 3438870-4.patch1022 bytesswentel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

davidebarbato created an issue. See original summary.

swentel’s picture

Hmm you're absolutely right, I can easily reproduce as well. It seems to work for other field though, but not description, looking into it!

swentel’s picture

The interesting thing is, if you configure, and then save, everything is fine, also during rendering, it's Field UI though where something goes wrong, still digging :)

swentel’s picture

Status: Active » Needs review
FileSize
1022 bytes

I think I have it! Are you able to test this patch? I'll be testing it in many places to make sure I haven't broken anything as this is tricky stuff :)

fulya.ozsan’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
1.82 MB

Hi all,

I tested the patch in #4 on Drupal version 10.2.5 for Display Suite version 8.x-3.20.

The patch was applied successfully. When I reopened the field to edit the class, the previously entered parameters are displaying. The class is also applied to the field. I uploaded the screen recording video.

Thanks for your contributions.

  • swentel committed 50706dfb on 8.x-3.x
    Issue #3438870 by swentel, fulya.ozsan, davidebarbato: Problem with...
swentel’s picture

Status: Reviewed & tested by the community » Fixed

ok, committed and pushed.