I have used hierarchical links as formatter at taxonomy field and found that the field label always display in node output even there is no data in field.

I checked the code and have made a quick fix. I will attach a patch here.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jimmyko’s picture

Status: Active » Needs review
FileSize
600 bytes

The patch is pretty simple. I just return a NULL value rather than an empty array at hs_taxonomy_field_formatter_view() when there is no taxonomy term data in field.

EDIT:
This fix is missing the most important thing - the variable! I am going to make a new one instead below.

jimmyko’s picture

This is the corrected patch for 7.x-3.0-alpha5

Gold’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

It's been a long time since this was reported and I am currently unable to replicate.