undefined vars
authordemeritcowboy <demeritcowboy@hotmail.com>
Thu, 19 Jan 2023 01:16:02 +0000 (20:16 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Thu, 19 Jan 2023 03:38:28 +0000 (22:38 -0500)
CRM/Case/Form/ActivityView.php

index 771d33d498bab4753d2f1e771d80908b69d48c59..44cae6ca68d7480e6edc421d34dbde564e3bd1b2 100644 (file)
@@ -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');