I've noticed that the 'Email address:' label still appears in teasers and full nodes even when no email address is entered.

Sorry if this is user error on my part but I couldn't find a way of removing it and the other fields only show when data is entered.

Thanks
Dan

CommentFileSizeAuthor
#7 hide_label_for_blank_emails-252378-7.patch2.35 KBAnonymous (not verified)
#1 email.diff685 bytespmarti

Comments

pmarti’s picture

Status: Needs review » Active
StatusFileSize
new685 bytes

I solved this with the attached diff. Hope it helps

pmarti’s picture

Status: Active » Needs review
groovypower’s picture

Status: Active » Needs review

Code works great. Patch does not match up with 6.x-1.x-dev that is on the release page. Although, I do not have the latest CVS version.

mh86’s picture

Status: Needs review » Fixed

hi!
I committed your patch (slightly different) and added the check for empty values to the other formatters too.
thanks for your help.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Triskelion’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Active

It's back in D7.

Link to contact form appears with empty email address. Clicking on link gives Page Not Found.

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new2.35 KB

This should fix it.

agileware’s picture

Status: Needs review » Reviewed & tested by the community

Confirming #7 patch

Triskelion’s picture

Also confirm it works. When is this going to be committed?

3cwebdev’s picture

Issue summary: View changes

Confirmed. Patch #7 works. This should be committed.

mh86’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

Patch from #7 basically looks ok, but I don't understand why we need it. I tested the Email field without the patch and I can't reproduce this problem. Not even core has checks for empty values (see text_field_formatter_view).

Would be great if someone can explain me the steps to reproduce this issue.

byrond’s picture

Status: Postponed (maintainer needs more info) » Active