Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't render an empty mailto link for empty email addresses #540

Merged
merged 1 commit into from
Apr 22, 2019

Conversation

JKingsnorth
Copy link
Contributor

If you add an 'email address' field to a views display, and choose to output it as a mailto link then an empty link is created when the email address is empty; with the link of just 'mailto:'.

This patch makes a change to ensure that an email address is present before outputting a link around it.

@civibot
Copy link

civibot bot commented Aug 17, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

This looks sensible and fine merging

@seamuslee001 seamuslee001 merged commit 6b655dd into civicrm:7.x-master Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants