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.
When fields are left blank, the display is normally left out entirely. However, when the "term reference tree" formatter is used as the display type, a disembodied label prints out without any data. The label shouldn't be printed in such cases.
Comment | File | Size | Author |
---|---|---|---|
#1 | hide-empty-field-1648122-01.patch | 941 bytes | sbandyopadhyay |
Comments
Comment #1
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedThe attached patch only displays the field if the $items array isn't empty.
Comment #2
kpaxman CreditAttribution: kpaxman commentedI can confirm the issue, and that this patch resolves it successfully.
Comment #3
Dave ReidCommitted #1 to 7.x-1.x. Thanks!
http://drupalcode.org/project/term_reference_tree.git/commit/3ca763d