CRM-15981 - Fix case activity revision table
authorColeman Watts <coleman@civicrm.org>
Tue, 17 Feb 2015 02:40:58 +0000 (21:40 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Feb 2015 02:40:58 +0000 (21:40 -0500)
CRM/Activity/BAO/Activity.php

index 39d28852dcc36585849b2f90b3eb36f3791a1e8c..61fdb3c53f3c5fe6300a6a26b40eb3acb39ed375 100644 (file)
@@ -1994,6 +1994,9 @@ AND id < {$activityID}
         $activityID,
         'original_id'
       );
+      if (!$originalID) {
+        $originalID = $activityID;
+      }
       if ($originalID) {
         $query = "
 SELECT c.display_name as name, cl.modified_date as date, ca.id as activityID