When the field is empty, Drupal generally will not output the field by default. In MVF case, the field formatter is empty but the $element returned is not, due to the attached css.

CommentFileSizeAuthor
#2 mvf-empty_field_rendered-2686139-1.patch1.15 KBckng

Comments

ckng created an issue. See original summary.

ckng’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

See attached patch.

bucefal91’s picture

Status: Needs review » Fixed

Thanks for the heads up and for the patch! I've committed it.

  • bucefal91 committed 91f3003 on 7.x-1.x
    Issue #2686139 by ckng: Appropriately handing CSS attaching on empty...

Status: Fixed » Closed (fixed)

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