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

Add icon to ContactNamePair and remove redundant keys from Afform entity #19

Merged

Conversation

colemanw
Copy link
Contributor

Now name, label and icon will all be fetched from metadata.

image

Now name, label and icon will all be fetched from metadata.
@@ -1,6 +1,4 @@
<?php
return [
'entity' => 'ContactNamePair',
Copy link
Owner

Choose a reason for hiding this comment

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

@colemanw is this not being required civi-version dependent? Or was it never required just copy & paste acquired?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you kept the 'entity' => 'ContactNamePair' line then the rest of this PR would work with previous versions of Afform.

Copy link
Owner

Choose a reason for hiding this comment

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

Hmm - maybe I'll just wait to cut it until I'm ready to make it 5.39 dependent - otherwise I'l forget this cleanup

@eileenmcnaughton eileenmcnaughton merged commit 8d0cc70 into eileenmcnaughton:master Jun 6, 2021
@colemanw colemanw deleted the afformEntityIcon branch June 6, 2021 23:41
@colemanw
Copy link
Contributor Author

colemanw commented Jun 6, 2021

Cool

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.

2 participants