Make sure that the "Change Timeline" business logic runs in a transaction
authoratif-shaikh <shaikh388@gmail.com>
Fri, 16 Jan 2015 11:06:39 +0000 (16:36 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Fri, 16 Jan 2015 11:06:39 +0000 (16:36 +0530)
Civi/CCase/Events.php

index 13a42efe33751e8cf49ac04beeadbb7cc5b5c456..81757cbb406dd982fb1b22f6582d420e1845824a 100644 (file)
@@ -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'),