CRM-20420 - PDFLetterCommon::postProcess - Improve precondition check
authorTim Otten <totten@civicrm.org>
Thu, 13 Apr 2017 17:20:31 +0000 (10:20 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 13 Apr 2017 17:20:31 +0000 (10:20 -0700)
commitbdac10d8e5bf8405bb444a8bbb8ffb3041304b2d
tree02102426ed39e138aa03a37ba3645307bab9114b
parent3ed92c142653046e234cd0187125f18c008955c6
CRM-20420 - PDFLetterCommon::postProcess - Improve precondition check

It's not valid to apply the policy `combined-attached` unless you have
exactly 1 activity.  The previous code would silently degrade if the
precondition wasn't met. The revision makes the failure clear.
CRM/Contact/Form/Task/PDFLetterCommon.php