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

civicrm_handler_field_link_pcp: avoid PHP notice #547

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

mlutfy
Copy link
Member

@mlutfy mlutfy commented Oct 26, 2018

This function generated PHP notices 'Undefined property: stdClass::$unknown',
yet the field_alias is not used anyway in the render_link() function. The change
proposed here is consistent with similar changes elsewhere (ex: 8da894b).

My view was fairly typical: contact names and page URL (we did rewrite the page URL field so that it links on the page title). Full view: http://paste.debian.net/hidden/5d54a877/

This function generated PHP notices 'Undefined property: stdClass::$unknown',
yet the field_alias is not used anyway in the render_link() function. The change
proposed here is consistent with similar changes elsewhere (ex: 8da894b).
@civibot
Copy link

civibot bot commented Oct 26, 2018

(Standard links)

@civibot civibot bot added the 7.x-master label Oct 26, 2018
@jackrabbithanna
Copy link
Contributor

This is a good fix, I recommend merging.

@seamuslee001
Copy link
Contributor

Merging as per Mark's recommendation

@seamuslee001 seamuslee001 merged commit b8f1b15 into civicrm:7.x-master Oct 26, 2018
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