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 bugs with hook params, functionality on contact searches #11861

Merged
merged 2 commits into from
Mar 22, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 22, 2018

Overview

Fix issue with entity not passed to hook (also fixes CRM-21841 ).
Fix tangental issue where screen does not load if default task is removed per #11596 (comment)

Before

$objectType Not passed to hook civicrm_searchTasks

After

$objectType passed to hook civicrm_searchTasks

Technical Details

The self::objectType is passing NULL - the object type on the parent.

Switching to static::objectType uses the child.

https://stackoverflow.com/questions/1912902/what-exactly-are-late-static-bindings-in-php
Comments

@mattwire ping


…M-21841 as by-product.

The self::objectType is passing NULL - the object type on the parent.

Switching to static::objectType uses the child.

https://stackoverflow.com/questions/1912902/what-exactly-are-late-static-bindings-in-php
@eileenmcnaughton eileenmcnaughton changed the base branch from master to 5.0 March 22, 2018 11:51
This was picked up in QA on search task changes & I was able to replicate - this fixes
@eileenmcnaughton eileenmcnaughton changed the title Fix regression (intra-rc) where entity not passed to hook in contact searches Fix bugs with hook params, functionality on contact searches Mar 22, 2018
@aydun
Copy link
Contributor

aydun commented Mar 22, 2018

Tested - I was about to submit the same fix for static::objectType. Maybe also git rid of the declaration at line 73 since it is now not used.

@eileenmcnaughton
Copy link
Contributor Author

I'm merging this based on @aydun testing / concurrence.

@eileenmcnaughton eileenmcnaughton merged commit 49ef732 into civicrm:5.0 Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants