Skip to content

Commit

Permalink
COMCL-792: fix pdf creation for cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Shahrukh committed Sep 4, 2024
1 parent 949cc84 commit 2aa1b31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Civicase/Hook/BuildForm/HandleDraftActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ private function addSaveDraftButton(CRM_Core_Form &$form, $formName) {
$form->setDefaults($draft);
}
}
$caseId = CRM_Utils_Request::retrieve('caseid', 'String');
if ($formName === self::PDF_LETTER_FORM_NAME && !empty($caseId)) {
$form->addElement('hidden', 'caseid', $caseId);
}
}

/**
Expand Down

0 comments on commit 2aa1b31

Please sign in to comment.