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.
In case instance and all the parents are empty (but some are enabled) the function returns FALSE
when called with $include_defaults = TRUE
. This causes metatags fieldset disappeared from the entity form in some cases. I've experienced this issue on custom module development and haven't tried to reproduce without custom code, but it's actually a general issue not specific to our custom code. Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#1 | metatag-2454499-1.patch | 1.11 KB | Dmitriy.trt |
Comments
Comment #1
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedInstead of just converting metatag_config_load_with_defaults() to boolean, which doesn't let us to distinguish non-existing or disabled configs from empty ones, we should just look for at least one enabled config in a parents chain.
Comment #2
DamienMcKennaCommitted. Thanks!