Skip to content
Snippets Groups Projects
Unverified Commit 9a1af0ba authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #15430 from civicrm/5.19

5.19
parents 7646662a 7123fc54
Branches
Tags
No related merge requests found
......@@ -180,7 +180,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon extends CRM_Core_Form_Task_PDFLetter
}
$tee = NULL;
if ($isLiveMode && Civi::settings()->get('recordGeneratedLetters') === 'combined-attached') {
if (self::isLiveMode($form) && Civi::settings()->get('recordGeneratedLetters') === 'combined-attached') {
if (count($activityIds) !== 1) {
throw new CRM_Core_Exception("When recordGeneratedLetters=combined-attached, there should only be one activity.");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment