Skip to content

Commit

Permalink
Merge pull request #15420 from eileenmcnaughton/live_notice
Browse files Browse the repository at this point in the history
dev/core#1281 fix e-notice on isLiveMode
  • Loading branch information
seamuslee001 authored Oct 7, 2019
2 parents ab13442 + dd8e53c commit 7123fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/Form/Task/PDFLetterCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static function postProcess(&$form) {
}

$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.");
}
Expand Down

0 comments on commit 7123fc5

Please sign in to comment.