Commit fde25552 authored by eileen's avatar eileen

Fix regression (intra-rc) where entity not passed to hook, and fix CRM-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
parent f3ffb296
......@@ -82,7 +82,7 @@ abstract class CRM_Core_Task {
* ]
*/
public static function tasks() {
CRM_Utils_Hook::searchTasks(self::$objectType, self::$_tasks);
CRM_Utils_Hook::searchTasks(static::$objectType, self::$_tasks);
asort(self::$_tasks);
return self::$_tasks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment