removed unwanted code CRM-14567
authorkurund <kurund@civicrm.org>
Mon, 30 Jun 2014 17:55:41 +0000 (23:25 +0530)
committerkurund <kurund@civicrm.org>
Mon, 30 Jun 2014 17:55:41 +0000 (23:25 +0530)
----------------------------------------
* CRM-14567: Replace DOMPDF with TCPDF for "Create PDF Letter"
  https://issues.civicrm.org/jira/browse/CRM-14567

CRM/Contact/Form/Task/PDFLetterCommon.php

index 769082425c2de3c130ecb4943d539420d6e7ab24..6ef3aacdfabaf6f5a994e04cf5abf5968e63c074 100644 (file)
@@ -184,14 +184,6 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
         FALSE
       );
 
-      if ($form->_caseId) {
-        $ccid = CRM_Core_DAO::getFieldValue('CRM_Case_DAO_CaseContact', $form->_caseId,
-                'contact_id', 'case_id'
-        );
-        $cancelURL = CRM_Utils_System::url('civicrm/contact/view/case',
-                     "&reset=1&action=view&cid={$ccid}&id={$form->_caseId}"
-        );
-      }
       if ($form->get('action') == CRM_Core_Action::VIEW) {
         $form->addButtons(array(
             array(
@@ -459,15 +451,6 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
       );
       CRM_Activity_BAO_ActivityContact::create($activityTargetParams);
     }
-
-    if (isset($form->_caseId) && is_numeric($form->_caseId)) {
-      // if case-id is found the file the activity on the case
-      $caseParams = array(
-        'activity_id' => empty($activity->id) ? $activityIds[$contactId] : $activity->id,
-        'case_id' => $form->_caseId,
-      );
-      CRM_Case_BAO_Case::processCaseActivity($caseParams);
-    }
   }
 
   /**