From 542441f4c0f8b4969963cef1136b2ff94861b965 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 4 Nov 2015 10:24:49 -0800 Subject: [PATCH] CRM_Utils_Hook::caseChange - Fix firing The event fired correctly with the Symfony dispatcher, but the hooks did not fire correctly. Fix the hooks. --- CRM/Utils/Hook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 2d7dca8563..e96d7c473f 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -1880,12 +1880,13 @@ abstract class CRM_Utils_Hook { * This hook fires whenever a record in a case changes. * * @param \Civi\CCase\Analyzer $analyzer + * A bundle of data about the case (such as the case and activity records). */ public static function caseChange(\Civi\CCase\Analyzer $analyzer) { $event = new \Civi\CCase\Event\CaseChangeEvent($analyzer); \Civi\Core\Container::singleton()->get('dispatcher')->dispatch("hook_civicrm_caseChange", $event); - return self::singleton()->invoke(1, $angularModules, + self::singleton()->invoke(1, $analyzer, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_caseChange' ); -- 2.25.1