From: kurund Date: Mon, 30 Jun 2014 17:55:41 +0000 (+0530) Subject: removed unwanted code CRM-14567 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=84843916de00d8cf0a45d91b7da6157c382e52c0;p=civicrm-core.git removed unwanted code CRM-14567 ---------------------------------------- * CRM-14567: Replace DOMPDF with TCPDF for "Create PDF Letter" https://issues.civicrm.org/jira/browse/CRM-14567 --- diff --git a/CRM/Contact/Form/Task/PDFLetterCommon.php b/CRM/Contact/Form/Task/PDFLetterCommon.php index 769082425c..6ef3aacdfa 100644 --- a/CRM/Contact/Form/Task/PDFLetterCommon.php +++ b/CRM/Contact/Form/Task/PDFLetterCommon.php @@ -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); - } } /**