From 29b825ac98adc828ccc2bfb9923f47376899d3b0 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 18 Jan 2023 20:16:02 -0500 Subject: [PATCH] undefined vars --- CRM/Case/Form/ActivityView.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Case/Form/ActivityView.php b/CRM/Case/Form/ActivityView.php index 771d33d498..44cae6ca68 100644 --- a/CRM/Case/Form/ActivityView.php +++ b/CRM/Case/Form/ActivityView.php @@ -90,6 +90,7 @@ class CRM_Case_Form_ActivityView extends CRM_Core_Form { $this->assign('latestRevisionID', $latestRevisionID); } else { + $this->assign('revs', 0); if (count($viewPriorActivities) > 1) { $this->assign('activityID', $activityID); } @@ -100,9 +101,7 @@ class CRM_Case_Form_ActivityView extends CRM_Core_Form { } $parentID = CRM_Activity_BAO_Activity::getParentActivity($activityID); - if ($parentID) { - $this->assign('parentID', $parentID); - } + $this->assign('parentID', $parentID ?? NULL); //viewing activity should get diplayed in recent list.CRM-4670 $activityTypeID = CRM_Core_DAO::getFieldValue('CRM_Activity_DAO_Activity', $activityID, 'activity_type_id'); -- 2.25.1