remove loop that since at least 5.23 does nothing for single cases and crashes for...
authordemeritcowboy <demeritcowboy@hotmail.com>
Thu, 18 Mar 2021 02:49:41 +0000 (22:49 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Thu, 18 Mar 2021 02:49:41 +0000 (22:49 -0400)
CRM/Contact/Form/Task/EmailTrait.php

index 67c06172d8e10aa63031a919ff74cb2bfd971037..bd5c205996e230092af2d295bff47ea694075d01 100644 (file)
@@ -447,20 +447,6 @@ trait CRM_Contact_Form_Task_EmailTrait {
         'plural' => '%count Messages Not Sent',
       ]), 'info');
     }
-
-    if (isset($this->_caseId)) {
-      // if case-id is found in the url, create case activity record
-      $cases = explode(',', $this->_caseId);
-      foreach ($cases as $key => $val) {
-        if (is_numeric($val)) {
-          $caseParams = [
-            'activity_id' => $activityId,
-            'case_id' => $val,
-          ];
-          CRM_Case_BAO_Case::processCaseActivity($caseParams);
-        }
-      }
-    }
   }
 
   /**