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

fix: Allow card url attributes to be empty #1810

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

remydenton
Copy link
Collaborator

Jira

N/A

Summary

Allows card url attributes to be empty

Details

null arguments to the create_attributes() twig function result in PHP errors in Drupal. Based on existing Bolt conventions, you should provide an empty default argument unless you know the argument will not be null.

@remydenton remydenton requested a review from sghoweri April 3, 2020 21:22
@remydenton remydenton added the bug label Apr 3, 2020
@remydenton remydenton added this to the v2.21.0 milestone Apr 3, 2020
Copy link
Contributor

@sghoweri sghoweri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @remydenton!

@sghoweri sghoweri merged commit 3847abd into master Apr 8, 2020
@sghoweri sghoweri deleted the fix/replacement-card-link-attributes branch April 8, 2020 14:33
@sghoweri
Copy link
Contributor

sghoweri commented Apr 8, 2020

PR was released with v2.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants