X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FForm%2FCaseView.php;h=3932eed6c8be61463cd0ea17d8bfc8c1837bec86;hb=e43d52063370186e985c5e203bd67dbac5893b81;hp=76bbe9a53bc3609ecc71bdc496c9df740ea009f7;hpb=21408e2ce520d3282efdaeb7637c55efc89b05a8;p=civicrm-core.git diff --git a/CRM/Case/Form/CaseView.php b/CRM/Case/Form/CaseView.php index 76bbe9a53b..3932eed6c8 100644 --- a/CRM/Case/Form/CaseView.php +++ b/CRM/Case/Form/CaseView.php @@ -232,6 +232,11 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { $emailActivityType = array_search('Email', $allActTypes); $pdfActivityType = array_search('Print PDF Letter', $allActTypes); + if ($pdfActivityType) { + $this->assign('exportDoc', CRM_Utils_System::url('civicrm/activity/pdf/add', + "action=add&context=standalone&reset=1&cid={$this->_contactID}&caseid={$this->_caseID}&atype=$pdfActivityType")); + } + // remove Open Case activity type since we're inside an existing case if ($openActTypeId = array_search('Open Case', $allActTypes)) { unset($aTypes[$openActTypeId]);