From 98947f92a6bfd6852e8a1bd1cd408a8fdb234361 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Tue, 19 Jul 2022 17:16:30 -0400 Subject: [PATCH] add afform blocks to print summary --- ext/afform/core/afform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index 19f86de1ad..408e6b4113 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -207,7 +207,7 @@ function afform_civicrm_tabset($tabsetName, &$tabs, $context) { * Adds afforms as contact summary blocks. */ function afform_civicrm_pageRun(&$page) { - if (get_class($page) !== 'CRM_Contact_Page_View_Summary') { + if (!in_array(get_class($page), ['CRM_Contact_Page_View_Summary', 'CRM_Contact_Page_View_Print'])) { return; } $scanner = \Civi::service('afform_scanner'); -- 2.25.1