From 6ff10bf1c640d1bd3166545d92fc5d9d9d6ad34a Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Fri, 16 Jan 2015 16:36:39 +0530 Subject: [PATCH] Make sure that the "Change Timeline" business logic runs in a transaction --- Civi/CCase/Events.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Civi/CCase/Events.php b/Civi/CCase/Events.php index 13a42efe33..81757cbb40 100644 --- a/Civi/CCase/Events.php +++ b/Civi/CCase/Events.php @@ -63,6 +63,7 @@ class Events { if ($caseId) { if (!isset(self::$isActive[$caseId])) { + $tx = new \CRM_Core_Transaction(); \CRM_Core_Transaction::addCallback( \CRM_Core_Transaction::PHASE_POST_COMMIT, array(__CLASS__, 'fireCaseChangeForRealz'), -- 2.25.1