From: Coleman Watts Date: Tue, 17 Feb 2015 02:40:58 +0000 (-0500) Subject: CRM-15981 - Fix case activity revision table X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ea979d934d1298ca89e55f11d7484844be334e1;p=civicrm-core.git CRM-15981 - Fix case activity revision table --- 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