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.

CommentFileSizeAuthor
#1 hide-empty-field-1648122-01.patch941 bytessbandyopadhyay
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sbandyopadhyay’s picture

Status: Active » Needs review
FileSize
941 bytes

The attached patch only displays the field if the $items array isn't empty.

kpaxman’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the issue, and that this patch resolves it successfully.

Dave Reid’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.