From 6ea979d934d1298ca89e55f11d7484844be334e1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 16 Feb 2015 21:40:58 -0500 Subject: [PATCH] CRM-15981 - Fix case activity revision table --- CRM/Activity/BAO/Activity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 39d28852dc..61fdb3c53f 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -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 -- 2.25.1