Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The condition in flag_entity_build_defaults_alter
looks wrong. Flag fields are always added to the entity display ...
Proposed resolution
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
d8-flag-entity-display.patch | 544 bytes | webflo | |
Comments
Comment #1
BerdirGood catch but I think your patch is wrong too :)
What you want is "Skip if not shown as field *or* not enabled for this display", no?
Comment #2
BerdirComment #3
penyaskitoSee flag_entity_view() where we have the same pattern. If that's the fix, we may need to change there too.
Comment #4
joachim CreditAttribution: joachim commentedSounds like this needs work. Also, needs tests! :)
Comment #5
joachim CreditAttribution: joachim commentedI think this issue might be obsolete.
Comment #6
joachim CreditAttribution: joachim commentedYup, obsolete. The patch no longer applies, and we now have tests covering this.