Fix regression (intra-rc) where entity not passed to hook, and fix CRM-21841 as by...
authoreileen <emcnaughton@wikimedia.org>
Thu, 22 Mar 2018 11:49:02 +0000 (00:49 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 22 Mar 2018 11:49:02 +0000 (00:49 +1300)
commitfde255528164ab6242ce293890ee4f83aac95eec
tree2622dd1d0606812eea22806712396bc56cf05902
parentf3ffb296f0a639beb96d606889952b1c6fada7fd
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
CRM/Core/Task.php